All pastes #2067080 Raw Edit

vector.h

public text v1 · immutable
#2067080 ·published 2011-05-22 19:08 UTC
rendered paste body
#include <stdlib.h>


struct myvector *create(int length);

void distroy(struct myvector *vector);

void set(struct myvector *vector, int pos, float value);

float get(struct myvector *vector, int pos);

struct myvector
{
  float *array;
  int lenght;
};