Last change
on this file since 0580615 was 0580615, checked in by Thomas Lopatic <thomas@…>, 7 years ago |
Point of no return.
|
-
Property mode
set to
100644
|
File size:
392 bytes
|
Rev | Line | |
---|
[f40a309] | 1 | /*
|
---|
| 2 | =============================================================================
|
---|
| 3 | strcpy.c -- copy string
|
---|
| 4 | Version 1 -- 1987-06-12
|
---|
| 5 |
|
---|
| 6 | Copy string s2 to s1. s1 must be large enough.
|
---|
| 7 | return s1
|
---|
| 8 | =============================================================================
|
---|
| 9 | */
|
---|
| 10 |
|
---|
[0580615] | 11 | char *strcpy(char *s1, char *s2)
|
---|
[f40a309] | 12 | {
|
---|
| 13 | register char *os1;
|
---|
| 14 |
|
---|
| 15 | os1 = s1;
|
---|
| 16 |
|
---|
| 17 | while(*s1++ = *s2++)
|
---|
| 18 | ;
|
---|
| 19 |
|
---|
| 20 | return(os1);
|
---|
| 21 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.