view Meerwald/coord.h @ 8:f83ef905a63d

fixing many warnings increase capacity for coordinates in bruyn fix some uninit. variables
author Peter Meerwald <pmeerw@cosy.sbg.ac.at>
date Tue, 22 Apr 2008 13:36:05 +0200
parents be303a3f5ea8
children
line wrap: on
line source

#ifndef COORD_H
#define COORD_H

struct coord {
  int x;
  int y;
};

struct coords {
  int count;
  int max;
  struct coord *values;
};

struct coords *alloc_coords(int n);
void free_coords(struct coords *c);
int init_coords(struct coords *c, int n);
int add_coord(struct coords *c, int x, int y);

#endif

Repositories maintained by Peter Meerwald, pmeerw@pmeerw.net.