Changeset 157 for trunk/lib/smb_deps.c
- Timestamp:
- 11/22/09 19:47:22 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/lib/smb_deps.c
r147 r157 26 26 #include "smb_deps.h" 27 27 28 29 /* These act as replacements for numerous Samba memory allocation30 * functions.31 */32 void* zalloc(size_t size)33 {34 void* ret_val = NULL;35 if((size > 0) && (ret_val = (void*)malloc(size)) != NULL)36 memset(ret_val, 0, size);37 38 return ret_val;39 }40 41 void* zcalloc(size_t size, unsigned int count)42 {43 return zalloc(size*count);44 }45 28 46 29 /* From lib/time.c */
Note: See TracChangeset
for help on using the changeset viewer.