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.
17 * Return pointer to empty point list.
22 return ((POINT *) NULL);
27 * This routine creates a new point with coordinates x and y and links it
37 if (Nullpoint(pt = *pplist)) { /* empty list */
38 *pplist = (POINT *) malloc(sizeof(POINT));
41 while (!Nullpoint(pt->nextpt))
43 pt->nextpt = (POINT *) malloc(sizeof(POINT));
49 pt->nextpt = PTInit();
51 } /* end PTMakePoint */