diff options
author | John Kohl <jtkohl@mit.edu> | 1987-03-18 12:47:34 +0000 |
---|---|---|
committer | John Kohl <jtkohl@mit.edu> | 1987-03-18 12:47:34 +0000 |
commit | 647ce656f4afd6be1c4306d65e0faff4f7b22070 (patch) | |
tree | 2ff279e8b49d944f93f97b4131cffc8a77dd82bf /server/common.c | |
parent | 6b44d95d60ecc9c6fe9b3081c8eb9f2cdab58915 (diff) |
Initial revision
Diffstat (limited to 'server/common.c')
-rw-r--r-- | server/common.c | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/server/common.c b/server/common.c new file mode 100644 index 0000000..2a99cf6 --- /dev/null +++ b/server/common.c @@ -0,0 +1,27 @@ +/* + * $Source$ + * $Header$ + */ + +#ifndef lint +static char *rcsid_common_c = "$Header$"; +#endif lint + +/* common routines */ + +#include <zephyr/mit-copyright.h> +#include <stdio.h> + +char * +strsave(sp) char *sp; +{ + register char *ret; + + if((ret = (char *) malloc(strlen(sp)+1)) == NULL) { + error("out of memory in strsave()\n"); + return(NULL); + } + strcpy(ret,sp); + return(ret); +} + |