diff options
Diffstat (limited to 'man3/stpcpy.3')
| -rw-r--r-- | man3/stpcpy.3 | 28 |
1 files changed, 15 insertions, 13 deletions
diff --git a/man3/stpcpy.3 b/man3/stpcpy.3 index 472d3b4faf..1dcd3ca947 100644 --- a/man3/stpcpy.3 +++ b/man3/stpcpy.3 @@ -46,28 +46,30 @@ The strings may not overlap, and the destination string returns a pointer to the \fBend\fP of the string \fIdest\fP (that is, the address of the terminating null byte) rather than the beginning. +.SH "CONFORMING TO" +This function is not part of the C or POSIX.1 standards, and is +not customary on Unix systems, but is not a GNU invention either. +Perhaps it comes from MS-DOS. .SH EXAMPLE For example, this program uses .BR stpcpy () to concatenate \fBfoo\fP and \fBbar\fP to produce \fBfoobar\fP, which it then prints. +.in +0.5i .nf - #include <string.h> +#include <string.h> - int - main (void) - { - char *to = buffer; - to = stpcpy(to, "foo"); - to = stpcpy(to, "bar"); - printf("%s\\n", buffer); - } +int +main (void) +{ + char *to = buffer; + to = stpcpy(to, "foo"); + to = stpcpy(to, "bar"); + printf("%s\\n", buffer); +} .fi -.SH "CONFORMING TO" -This function is not part of the C or POSIX.1 standards, and is -not customary on Unix systems, but is not a GNU invention either. -Perhaps it comes from MS-DOS. +.in .SH "SEE ALSO" .BR bcopy (3), .BR memccpy (3), |
