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
33 if (Nullpoint(pt = *pplist)) { /* empty list */
34 *pplist = (POINT *) malloc(sizeof(POINT));
37 while (!Nullpoint(pt->nextpt))
39 pt->nextpt = (POINT *) malloc(sizeof(POINT));
45 pt->nextpt = PTInit();
47 } /* end PTMakePoint */