3 /* Last non-groff version: hpoint.c 1.1 84/10/08 */
6 * This file contains routines for manipulating the point data structures
7 * for the gremlin picture editor.
15 * Return pointer to empty point list.
20 return ((POINT
*) NULL
);
25 * This routine creates a new point with coordinates x and y and links it
35 if (Nullpoint(pt
= *pplist
)) { /* empty list */
36 *pplist
= (POINT
*) malloc(sizeof(POINT
));
39 while (!Nullpoint(pt
->nextpt
))
41 pt
->nextpt
= (POINT
*) malloc(sizeof(POINT
));
47 pt
->nextpt
= PTInit();
49 } /* end PTMakePoint */