Clean up routes
This commit is contained in:
11
clonestr.h
Normal file
11
clonestr.h
Normal file
@ -0,0 +1,11 @@
|
||||
#ifndef CLONESTR_H_
|
||||
#define CLONESTR_H_
|
||||
|
||||
#define clonestr(str) \
|
||||
({ \
|
||||
char *__p = malloc(strlen((str))+1); \
|
||||
strcpy(__p, (str)); \
|
||||
(__p); \
|
||||
})
|
||||
|
||||
#endif // CLONESTR_H_
|
Reference in New Issue
Block a user