GRASS GIS 8 Programmer's Manual
8.5.0dev(2024)-d6dec75dd4
dispose.c
Go to the documentation of this file.
1
/*
2
** Written by David Gerdes US Army Construction Engineering Research Lab
3
** April 1992
4
** Copyright 1992 USA-CERL All rights reserved.
5
**
6
*/
7
8
#include <
grass/linkm.h
>
9
10
void
link_dispose
(
struct
link_head
*Head,
VOID_T
*ptr)
11
{
12
if
(
NULL
== ptr)
13
return
;
14
15
link__set_next
(ptr, Head->
Unused
);
/* ptr->next = Unused */
16
Head->
Unused
= ptr;
/* Unused = ptr */
17
}
NULL
#define NULL
Definition:
ccmath.h:32
link__set_next
void link__set_next(VOID_T *, VOID_T *)
Definition:
linkm/next.c:19
link_dispose
void link_dispose(struct link_head *Head, VOID_T *ptr)
Definition:
dispose.c:10
linkm.h
VOID_T
#define VOID_T
Definition:
linkm.h:8
link_head
Definition:
linkm.h:12
link_head::Unused
VOID_T * Unused
Definition:
linkm.h:18
lib
linkm
dispose.c
Generated on Sun Dec 22 2024 07:38:13 for GRASS GIS 8 Programmer's Manual by
1.9.1