Changeset 1061 in MondoRescue for branches/stable/mondo/src/lib/mr_mem.c
- Timestamp:
- Jan 18, 2007, 1:47:59 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/stable/mondo/src/lib/mr_mem.c
r1054 r1061 12 12 #include <stdio.h> 13 13 #include <stdlib.h> 14 #include <stdarg.h>15 14 16 15 #include "mr_err.h" … … 53 52 54 53 /* encapsulation function for asprintf */ 55 void mr_asprintf(char **strp, const char *fmt, ...) {54 void mr_asprintf(char **strp, const char *fmt, va_list args) { 56 55 57 va_list args;58 56 int res = 0; 59 57 60 va_start(args, fmt);61 58 res = vasprintf(strp, fmt, args); 62 59 if (res == -1) { 63 60 mr_log_exit(-1,"Unable to alloc memory in mr_asprintf\nExiting..."); 64 61 } 65 va_end(args);66 62 } 67 63
Note:
See TracChangeset
for help on using the changeset viewer.