home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
gdead.berkeley.edu
/
gdead.berkeley.edu.tar
/
gdead.berkeley.edu
/
pub
/
cad-tools
/
ciftomann.tar
/
driver_dir
/
string.h
< prev
Wrap
C/C++ Source or Header
|
1988-01-28
|
266b
|
16 lines
/*
* definitions for strings in C
*/
typedef char *string;
extern char *malloc();
extern char *strcpy(), *strncpy();
extern int strlen();
/*
* duplicate a string, allocating space for the copy
*/
#define strdup(s) strcpy(malloc((unsigned) strlen(s) + 1), s)