Revision: | 1.2 |
Committed: | Fri Mar 28 16:30:32 2003 UTC (21 years, 7 months ago) by tdb |
Content type: | text/plain |
Branch: | MAIN |
CVS Tags: | HEAD |
Changes since 1.1: | +1 -1 lines |
State: | FILE REMOVED |
Error occurred while calculating annotation data. | |
Log Message: | Removed some un-used code from CVS. We can always resurrect this later if someone feels they want to work on it. Gone are the old perl ihost which isn't needed now, winhost which is broken and shows no sign of being fixed, and DBReporter. If someone wants to revive them, I'll undelete them :-) |
# | Content |
---|---|
1 | /* strsave.c -- allocate memory and save a copy of a string */ |
2 | |
3 | /* Copyright 1992 Godfrey Paul, University of Kent at Canterbury. |
4 | * |
5 | * You can do what you like with this source code as long as |
6 | * you don't try to make money out of it and you include an |
7 | * unaltered copy of this message (including the copyright). |
8 | */ |
9 | |
10 | char ukcprog_strsave_sccsid[] = "$Id: strsave.c,v 1.1 2002/03/08 14:37:29 tdb Exp $ UKC"; |
11 | |
12 | #include <string.h> |
13 | #include <stdlib.h> /* for malloc() */ |
14 | |
15 | #include "ukcprog.h" |
16 | |
17 | |
18 | char * |
19 | strsave(s) |
20 | const char *s; |
21 | { |
22 | char *str; |
23 | |
24 | str = e_malloc(strlen(s) + 1); |
25 | |
26 | return strcpy(str, s); |
27 | } |