home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
GEMini Atari
/
GEMini_Atari_CD-ROM_Walnut_Creek_December_1993.iso
/
zip
/
gnu
/
mntlib16.lzh
/
MNTLIB16
/
STRCPY.C
< prev
next >
Wrap
C/C++ Source or Header
|
1993-07-29
|
402b
|
23 lines
/* from Henry Spencer's stringlib */
/* check for NULL string added by ERS */
#include <string.h>
#undef strcpy
/*
* strcpy - copy string src to dst
*/
char * /* dst */
strcpy(dst, src)
char *dst;
const char *src;
{
register char *dscan = dst;
register const char *sscan = src;
if (!sscan) sscan = "";
while ((*dscan++ = *sscan++) != '\0')
continue;
return(dst);
}