2
#include <grass/segment.h>
6
void insert(POINT ** pres_pt, int row, int col, int backrow, int backcol)
8
extern POINT *head_start_pt;
11
new_pt = (struct point *)G_malloc(sizeof(struct point));
15
new_pt->backrow = backrow;
16
new_pt->backcol = backcol;
19
if (head_start_pt == NULL) {
20
head_start_pt = new_pt;
21
*pres_pt = head_start_pt;
24
(*pres_pt)->next = new_pt;
25
*pres_pt = (*pres_pt)->next;