new mavl is working now
FossilOrigin-Name: 65a4eefffea57509c0d7fd573e53b15bf4a730ce297b7db182aaac796ea92448
This commit is contained in:
@ -1,6 +1,11 @@
|
||||
#include <string.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
/**
|
||||
* @brief Duplicate a string
|
||||
* @param s string to duplicate
|
||||
* @return duplicated string, the memory acllocated has to be freed by #free.
|
||||
*/
|
||||
char *cw_strdup(const char *s) {
|
||||
size_t size = strlen(s) + 1;
|
||||
char *p = malloc(size);
|
||||
|
Reference in New Issue
Block a user