1#include <string.h>2#include <scc/scc.h>34char *5xstrdup(const char *s)6{7 size_t len = strlen(s) + 1;8 char *p = xmalloc(len);910 return memcpy(p, s, len);11}
A fork of https://git.simple-cc.org/scc/ for Qute
git clone https://git.8pit.net/scc.git
1#include <string.h>2#include <scc/scc.h>34char *5xstrdup(const char *s)6{7 size_t len = strlen(s) + 1;8 char *p = xmalloc(len);910 return memcpy(p, s, len);11}