ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/svn/hopm/trunk/src/malloc.h
Revision: 5092
Committed: Tue Dec 23 20:12:39 2014 UTC (11 years, 7 months ago) by michael
Content type: text/x-chdr
File size: 226 byte(s)
Log Message:
- Renamed DupString() to xstrdup()

File Contents

# User Rev Content
1 michael 5052 #ifndef MALLOC_H
2     #define MALLOC_H
3    
4     #include <stdlib.h>
5    
6     #define MyFree(X) _MyFree((void **) &X)
7    
8     extern void *MyMalloc(size_t bytes);
9     extern void _MyFree(void **var);
10 michael 5092 extern void *xstrdup(const char *);
11 michael 5052
12     #endif /* MALLOC_H */