]> andersk Git - moira.git/blobdiff - lib/strs.c
second code style cleanup: void/void * usage, proper #includes. try to
[moira.git] / lib / strs.c
index 1dc4def69778f3efc6579c3911d70539d68feb5f..2980e9b38f9df2ba00d2cd907ed3605fef6b4d0a 100644 (file)
@@ -1,49 +1,18 @@
-/*
- *     $Source$
- *     $Author$
- *     $Header$
+/* $Id $
  *
- *     Copyright (C) 1987 by the Massachusetts Institute of Technology
- *     For copying and distribution information, please see the file
- *     <mit-copyright.h>.
+ * Miscellaneous string functions.
  *
- *     Miscellaneous string functions.
+ * Copyright (C) 1987-1998 by the Massachusetts Institute of Technology
+ * For copying and distribution information, please see the file
+ * <mit-copyright.h>.
  */
 
-#ifndef lint
-static char *rcsid_strs_c = "$Header$";
-#endif
-
 #include <mit-copyright.h>
-#include <sys/types.h>
-#include <stdlib.h>
-#include <string.h>
-#include <ctype.h>
+#include <moira.h>
 
-/*
- * Random string functions which should be in the C library..
- */
+#include <ctype.h>
 
-/*
- * Make a copy of a string.
- */
-char *strsave(char *s)
-{
-  int len;
-  char *p;
-  /* Kludge for sloppy string semantics */
-  if (!s)
-    {
-      p = malloc(1);
-      *p = '\0';
-      return p;
-    }
-  len = strlen(s) + 1;
-  p = malloc(len);
-  if (p)
-    memcpy(p, s, len);
-  return p;
-}
+RCSID("$Header$");
 
 /*
  * Trim whitespace off both ends of a string.
This page took 0.05843 seconds and 4 git commands to generate.