Changeset 1064 in MondoRescue for branches/stable/mondo/src/lib/mr_mem.c
- Timestamp:
- Jan 23, 2007, 1:09:32 AM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/stable/mondo/src/lib/mr_mem.c
r1061 r1064 9 9 * Provided under the GPLv2 10 10 */ 11 12 #ifndef _GNU_SOURCE 13 #define _GNU_SOURCE 14 #endif 11 15 12 16 #include <stdio.h> … … 52 56 53 57 /* encapsulation function for asprintf */ 54 void mr_asprintf(char **strp, const char *fmt, va_list args) {58 void mr_asprintf(char **strp, const char *fmt, ...) { 55 59 56 60 int res = 0; 61 va_list args; 57 62 63 va_start(args,fmt); 58 64 res = vasprintf(strp, fmt, args); 59 65 if (res == -1) { 60 66 mr_log_exit(-1,"Unable to alloc memory in mr_asprintf\nExiting..."); 61 67 } 68 va_end(args); 62 69 } 63 70
Note:
See TracChangeset
for help on using the changeset viewer.