00001 /* salloc(): Re-implement salloc(), for platforms where it doesn't exist */ 00002 /*===================================================================== 00003 ======= COPYRIGHT NOTICE ======= 00004 Copyright (C) 1994, Carnegie Mellon University and Ronald Rosenfeld. 00005 All rights reserved. 00006 00007 This software is made available for research purposes only. It may be 00008 redistributed freely for this purpose, in full or in part, provided 00009 that this entire copyright notice is included on any copies of this 00010 software and applications and derivations thereof. 00011 00012 This software is provided on an "as is" basis, without warranty of any 00013 kind, either expressed or implied, as to any matter including, but not 00014 limited to warranty of fitness of purpose, or merchantability, or 00015 results obtained from use of this software. 00016 ======================================================================*/ 00017 /* Roni Rosenfeld, 12/92 */ 00018 00019 #include <strings.h> 00020 #include "general.h" 00021 00025 char *salloc(char *str) 00026 { 00027 char *copy = rr_malloc(strlen(str)+1); 00028 strcpy(copy,str); 00029 return(copy); 00030 }