Parent Directory
|
Revision Log
chore: add trunk
1 | #include <errno.h> |
2 | #include <string.h> |
3 | #include <stdarg.h> |
4 | #include <stdlib.h> |
5 | #include "utils.h" |
6 | |
7 | const char *get_last_error() |
8 | { |
9 | return strerror(errno); |
10 | } |
11 | |
12 | void free_varg(void *ptr1, ...) |
13 | { |
14 | va_list args; |
15 | va_start(args, ptr1); |
16 | free(ptr1); |
17 | void *arg; |
18 | |
19 | while ((arg = va_arg(args, void *)) != FREE_VARG_ENDARG) |
20 | free(arg); |
21 | |
22 | va_end(args); |
23 | } |
[email protected] | ViewVC Help |
Powered by ViewVC 1.1.26 |