Category : C Source Code
Archive   : CSRC2.ZIP
Filename : STRCPY.C

 
Output of file : STRCPY.C contained in archive : CSRC2.ZIP
/*
* s t r c p y . c
*/

/*)LIBRARY
*/

#ifdef DOCUMENTATION


title strcpy String Copy
index String copy

synopsis
.s.nf
char *
strcpy(out, in);
char *out;
char *in;
.s.f
Description

Copy "in" to "out". Return out.

Bugs

It might be more useful if it returned out + strlen(in).
(See cpystr()).

#endif

#define EOS 0

char *
strcpy(out, in)
register char *out;
register char *in;
/*
* Copy in to out, return out.
*/
{
register char *op;

for (op = out; (*op++ = *in++) != EOS;)
;
return (out);
}


  3 Responses to “Category : C Source Code
Archive   : CSRC2.ZIP
Filename : STRCPY.C

  1. Very nice! Thank you for this wonderful archive. I wonder why I found it only now. Long live the BBS file archives!

  2. This is so awesome! 😀 I’d be cool if you could download an entire archive of this at once, though.

  3. But one thing that puzzles me is the “mtswslnkmcjklsdlsbdmMICROSOFT” string. There is an article about it here. It is definitely worth a read: http://www.os2museum.com/wp/mtswslnk/