Skip to content
Find file
Fetching contributors…
Cannot retrieve contributors at this time
15 lines (11 sloc) 221 Bytes
#ifndef UTIL_H
#define UTIL_H
#include <stdlib.h>
#include <string.h>
static inline char *clonestr(char *s)
{
char *res = malloc(sizeof(char) * strlen(s) + 1);
strcpy(res, s);
return res;
}
#endif //UTIL_H
Jump to Line
Something went wrong with that request. Please try again.