1 /* Last non-groff version: hpoint.c 1.1 84/10/08 */
4 * This file contains routines for manipulating the point data structures
5 * for the gremlin picture editor.
13 * Return pointer to empty point list.
18 return ((POINT *) NULL);
23 * This routine creates a new point with coordinates x and y and links it
31 register POINT *point;
33 if (Nullpoint(point = *pplist)) { /* empty list */
34 *pplist = (POINT *) malloc(sizeof(POINT));
37 while (!Nullpoint(point->nextpt))
38 point = point->nextpt;
39 point->nextpt = (POINT *) malloc(sizeof(POINT));
40 point = point->nextpt;
45 point->nextpt = PTInit();
47 } /* end PTMakePoint */