Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

15 lines (11 sloc) 0.221 kB
#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.