Sophie

Sophie

distrib > Mandriva > 9.2 > i586 > by-pkgid > cb5625aca3e4def202f3617de4d26932 > files > 73

c2hs-0.9.9-2mdk.i586.rpm

#include "pointer.h"

Point *make_point (int x, int y)
{
  Point *pnt;

  pnt = (Point *) malloc (sizeof (Point));
  pnt->x = x;
  pnt->x = y;

  return pnt;
}

Point *trans_point (Point *pnt, int x, int y)
{
  Point *newPnt;

  newPnt = (Point *) malloc (sizeof (Point));
  newPnt->x = pnt->x + x;
  newPnt->y = pnt->y + y;

  return newPnt;
}