-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathSTRCPY.C
39 lines (35 loc) · 1.5 KB
/
STRCPY.C
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
/*****************************************************************
* "Copyright (C) 1985, Digital Research, Inc. All Rights *
* Reserved. The Software Code contained in this listing is *
* proprietary to Digital Research Inc., Monterey, California *
* and is covered by U.S. and other copyright protection. *
* Unauthorized copying, adaptation, distribution, use or *
* display is prohibited and may be subject to civil and *
* criminal penalties. Disclosure to others is prohibited. For *
* the terms and conditions of software code use refer to the *
* appropriate Digital Research License Agreement." *
*****************************************************************/
/*===============================================================*
* Version 1.0 strcpy.c *
* This routine copies a null terminated string s to *
* buffer d, and returns a pointer to d. *
*---------------------------------------------------------------*
* VERSION DATE BY CHANGE/COMMENTS *
*---------------------------------------------------------------*
* 1.0 01/26/84 KSO - Created *
* *
*===============================================================*
* INCLUDES: */
#include "portab.h"
BYTE *strcpy( d,s )
BYTE *d;
BYTE *s;
{
BYTE *p;
for( p = d; *p = *s; p++,s++ );
return( d );
}
ude "portab.h"
BYTE *strcpy( d,s )
BYTE *d;
BYTE *