home *** CD-ROM | disk | FTP | other *** search
- /*********
- *
- * _TR_SCPY.C
- *
- * by Tom Rettig
- *
- * Placed in the public domain by Tom Rettig Associates, 10/22/1990.
- *
- * Syntax: _tr_strcpy(cp1, cp2)
- * char *cp1;
- * char *cp2;
- *
- * Return: char *cp1
- * Note : This function replaces the C library routine strcpy()
- ********/
-
- #include "trlib.h"
-
- char *_tr_strcpy(outstr, instr)
- char *outstr;
- char *instr;
- {
- int i;
- for (i = 0; instr[i] != NULLC; i++)
- {
- outstr[i] = instr[i];
- }
- outstr[i] = NULLC;
-
- return(outstr);
- }
-
-