Reinstate more of the libcdio routines.

This commit is contained in:
rocky
2005-01-14 01:36:11 +00:00
parent fde6bbbb1b
commit bcff4bc236
3 changed files with 26 additions and 156 deletions

View File

@@ -1,5 +1,5 @@
/*
$Id: utils.c,v 1.1 2004/12/18 17:29:32 rocky Exp $
$Id: utils.c,v 1.2 2005/01/14 01:36:12 rocky Exp $
Copyright (C) 2004 Rocky Bernstein <rocky@panix.com>
Copyright (C) 1998 Monty xiphmont@mit.edu
@@ -136,3 +136,15 @@ idmessage(int messagedest,char **messages,const char *f,
}
if(malloced)free(buffer);
}
char *
catstring(char *buff,const char *s){
if(s){
if(buff)
buff=realloc(buff,strlen(buff)+strlen(s)+9);
else
buff=calloc(strlen(s)+9,1);
strcat(buff,s);
}
return(buff);
}