diff options
Diffstat (limited to 'wrapper/rvs.h')
-rw-r--r-- | wrapper/rvs.h | 15 |
1 files changed, 2 insertions, 13 deletions
diff --git a/wrapper/rvs.h b/wrapper/rvs.h index bf8c1f5..008b94a 100644 --- a/wrapper/rvs.h +++ b/wrapper/rvs.h @@ -111,23 +111,12 @@ stradds(size_t *size, char **dest, char *str) strcat(*dest, str); } } -size_t -xstrlen (const char *s) -{ - printf("xstrlen(%p)\n",s); - size_t size=0; - while (s[size] != '\0') { - printf("%i = %p `%c'\n",size,&s[size],s[size]); - size++; - } - return size; -} + char * stralloc (const char *string) { - char *copy = (char *)xmalloc(xstrlen(string)+1); + char *copy = (char *)xmalloc(strlen(string)+1); strcpy(copy,string); - puts(copy); return copy; } |