home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Super PC 34
/
Super PC 34 (Shareware).iso
/
spc
/
UTIL
/
DJGPP2
/
V2
/
DJTST200.ZIP
/
tests
/
libc
/
compat
/
string
/
stpcpy.c
< prev
Encoding:
Amiga
Atari
Commodore
DOS
FM Towns/JPY
Macintosh
Macintosh JP
Macintosh to JP
NeXTSTEP
RISC OS/Acorn
Shift JIS
UTF-8
Wrap
C/C++ Source or Header
|
1995-04-19
|
239 b
|
14 lines
#include <stdio.h>
#include <string.h>
int
main(void)
{
char d[100];
char *c = stpcpy(d, "hello");
printf("d=%s %p c=%s %p\n", d, d, c, c);
strcpy(c, "there");
printf("d=%s %p c=%s %p\n", d, d, c, c);
return 0;
}