[insert project logo here (125x200px max)] Navigator Mailinglists Please report any errors or ommissions you find to our `Help' mailinglist, or post a message in the Forums. Copyright and Licensing Information Snap is (c) Jonathan T. Moore, 1999-2002 and licensed under the GNU General Public License (GPL). All other parts of Splash are (c) Willem de Bruijn, 2002-2003 and licensed under the BSD Open Source License. All sourcecode is made publicly available. Acknowledgement Splash and the Splash website are hosted by SourceForge.net |
Splash - DocumentationSNMP Plus a Lightweight API for SNAP Handlingsnap_svc/snap_svc_memmap_hash_list.hGo to the documentation of this file.00001 /* snap-1.0. Copyright (C) 2000 by Jonathan T. Moore and Michael Hicks. 00002 * 00003 * list.h : routines for manipulating SNAP lists 00004 * 00005 * $Id: snap_svc_memmap_hash_list.h,v 1.1 2003/04/03 12:42:46 wdebruij Exp $ 00006 */ 00007 #ifndef _SNAP_LIST_H 00008 #define _SNAP_LIST_H 00009 00010 #include <stdlib.h> 00011 00012 #define memalloc(ptr,t,sz) \ 00013 { void *_result; \ 00014 _result = (void *)malloc(sz); \ 00015 (ptr) = (t)_result; \ 00016 } 00017 00018 #ifndef _SNAP_LIST_T 00019 typedef struct l { 00020 void *v; 00021 struct l *next; 00022 } list_t; 00023 #define _SNAP_LIST_T 00024 #endif /* !_SNAP_LIST_T */ 00025 00026 extern list_t *cons(void *v, list_t *next); 00027 extern void free_list(list_t *list); 00028 extern int length_list(list_t *list); 00029 #endif /* !_SNAP_LIST_H */ |