]> mj.ucw.cz Git - libucw.git/blobdiff - lib/alloc_str.c
Word length: Set the parameters in library examples.
[libucw.git] / lib / alloc_str.c
index 45ea49125d9eb85ed5d4f16276e5ba644a9bcdbe..05e803c737ef1b373b7d731fe6ff620e7202ddb9 100644 (file)
@@ -1,5 +1,5 @@
 /*
- *     Sherlock Library -- String Allocation
+ *     UCW Library -- String Allocation
  *
  *     (c) 1997 Martin Mares <mj@ucw.cz>
  *
@@ -11,8 +11,8 @@
 
 #include <string.h>
 
-byte *
-xstrdup(byte *s)
+char *
+xstrdup(const char *s)
 {
   uns l = strlen(s) + 1;
   return memcpy(xmalloc(l), s, l);