GRASS Programmer's Manual  6.4.2(2012)
destroy.c
Go to the documentation of this file.
00001 /*
00002  **  Written by David Gerdes  US Army Construction Engineering Research Lab
00003  **     April 1992
00004  **  Copyright 1992 USA-CERL   All rights reserved.
00005  **
00006  */
00007 #include <grass/linkm.h>
00008 
00009 
00010 void link_destroy(struct link_head *Head, VOID_T * ptr)
00011 {
00012     if (NULL == ptr)
00013         return;
00014 
00015     link__set_next(ptr, Head->Unused);  /* ptr->next = Unused */
00016     Head->Unused = ptr;         /* Unused = ptr */
00017 }
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines