2 * This file contains routines for manipulating the point data structures
3 * for the gremlin picture editor.
5 /* Last non-groff version: hpoint.c 1.1 84/10/08 */
8 #include "grn-config.h"
15 * Return pointer to empty point list.
20 return ((POINT
*) NULL
);
24 * This routine creates a new point with coordinates x and y and links it
34 if (Nullpoint(pt
= *pplist
)) { /* empty list */
35 *pplist
= (POINT
*) malloc(sizeof(POINT
));
38 while (!Nullpoint(pt
->nextpt
))
40 pt
->nextpt
= (POINT
*) malloc(sizeof(POINT
));
46 pt
->nextpt
= PTInit();
48 } /* end PTMakePoint */