Loading...
Searching...
No Matches
dispose.c
Go to the documentation of this file.
/*
** Written by David Gerdes US Army Construction Engineering Research Lab
** April 1992
** Copyright 1992 USA-CERL All rights reserved.
**
*/
#include <grass/linkm.h>
void link_dispose(struct link_head *Head, VOID_T *ptr)
{
if (NULL == ptr)
return;
link__set_next(ptr, Head->Unused); /* ptr->next = Unused */
Head->Unused = ptr; /* Unused = ptr */
}
NULL
#define NULL
Definition ccmath.h:32
link_dispose
void link_dispose(struct link_head *Head, VOID_T *ptr)
Definition dispose.c:10
link__set_next
void link__set_next(VOID_T *a, VOID_T *b)
Definition linkm/next.c:19
VOID_T
#define VOID_T
Definition qtree.h:28