Fixed scoping of menu variables.
[netwalk.git] / util.h
blob644375a928b130eb28762b51e4b943f2f31c49cf
1 #ifndef UTIL_H
2 #define UTIL_H
4 #include <stdlib.h>
5 #include <string.h>
7 static inline char *clonestr(char *s)
9 char *res = malloc(sizeof(char) * strlen(s) + 1);
10 strcpy(res, s);
11 return res;
14 #endif //UTIL_H