chiark / gitweb /
Internal review up to end of p11.
[userv.git] / lib.c
diff --git a/lib.c b/lib.c
index 4af9b804dae2a26a22885eb29735025b97564953..6c3cd0aff62924cd3e98449ae30616b54ce164a4 100644 (file)
--- a/lib.c
+++ b/lib.c
@@ -29,7 +29,7 @@
 #include "config.h"
 #include "lib.h"
 
-char *xmstrcat3save(const char *a, const char *b, const char *c) {
+char *xstrcat3save(const char *a, const char *b, const char *c) {
   char *r;
 
   r= xmalloc(strlen(a)+strlen(b)+strlen(c)+1);
@@ -39,7 +39,7 @@ char *xmstrcat3save(const char *a, const char *b, const char *c) {
   return r;
 }
 
-char *xmstrsave(const char *s) {
+char *xstrsave(const char *s) {
   char *r;
 
   r= xmalloc(strlen(s)+1);
@@ -47,7 +47,7 @@ char *xmstrsave(const char *s) {
   return r;
 }
 
-char *xmstrsubsave(const char *begin, int len) {
+char *xstrsubsave(const char *begin, int len) {
   char *r;
   
   r= xmalloc(len+1);
@@ -67,12 +67,6 @@ void *xrealloc(void *p, size_t s) {
   return p;
 }
 
-char *xstrdup(const char *str) {
-  char *r;
-  r= xmalloc(strlen(str)+1);
-  strcpy(r,str); return r;
-}
-
 void makeroom(char **buffer, int *size, int needed) {
   if (*size >= needed) return;
   *buffer= xrealloc(*buffer,needed);