Back to index

plt-scheme  4.2.1
gdhelpers.h
Go to the documentation of this file.
00001 #ifndef GDHELPERS_H
00002 #define GDHELPERS_H 1
00003 
00004 /* sys/types.h is needed for size_t on Sparc-SunOS-4.1 */
00005 #include <sys/types.h>
00006 
00007 /* TBB: strtok_r is not universal; provide an implementation of it. */
00008 
00009 extern char *gd_strtok_r (char *s, char *sep, char **state);
00010 
00011 /* These functions wrap memory management. gdFree is
00012        in gd.h, where callers can utilize it to correctly
00013        free memory allocated by these functions with the
00014        right version of free(). */
00015 void *gdCalloc (size_t nmemb, size_t size);
00016 void *gdMalloc (size_t size);
00017 void *gdRealloc (void *ptr, size_t size);
00018 
00019 #endif /* GDHELPERS_H */