Hallo, dies ist ein Test.
PWD: /www/data-lst1/unixsoft/unixsoft/kaempfer/.public_html
Running in File Mode
Relative path: ././../../../../../../usr/man/man3gen/strccpy.3gen
Real path: /usr/share/man/man3gen/strccpy.3gen
Zurück
'\" te .\" Copyright (c) 1989, AT&T. All rights reserved. .\" Portions Copyright (c) 1996, 2014, Oracle and/or its affiliates. All rights reserved. .TH strccpy 3GEN "14 May 2014" "Oracle Solaris 11.4" "String Pattern-Matching Library Functions" .SH NAME strccpy, streadd, strcadd, strecpy \- copy strings, compressing or expanding escape codes .SH SYNOPSIS .LP .nf cc [ \fIflag\fR ... ] \fIfile\fR ... \fB-lgen\fR [ \fIlibrary\fR ... ] #include <libgen.h> \fBchar *\fR\fBstrccpy\fR(\fBchar *\fR\fIoutput\fR, \fBconst char *\fR\fIinput\fR); .fi .LP .nf \fBchar *\fR\fBstrcadd\fR(\fBchar *\fR\fIoutput\fR, \fBconst char *\fR\fIinput\fR); .fi .LP .nf \fBchar *\fR\fBstrecpy\fR(\fBchar *\fR\fIoutput\fR, \fBconst char *\fR\fIinput\fR, \fBconst char *\fR\fIexceptions\fR); .fi .LP .nf \fBchar *\fR\fBstreadd\fR(\fBchar *\fR\fIoutput\fR, \fBconst char *\fR\fIinput\fR, \fBconst char *\fR\fIexceptions\fR); .fi .SH DESCRIPTION .sp .LP \fBstrccpy()\fR copies the \fIinput\fR string, up to a null byte, to the \fIoutput\fR string, compressing the C-language escape sequences (for example, \fB\en\fR, \fB\e001\fR) to the equivalent character. A null byte is appended to the output. The \fIoutput\fR argument must point to a space big enough to accommodate the result. If it is as big as the space pointed to by \fIinput\fR it is guaranteed to be big enough. \fBstrccpy()\fR returns the \fIoutput\fR argument. .sp .LP \fBstrcadd()\fR is identical to \fBstrccpy()\fR, except that it returns the pointer to the null byte that terminates the output. .sp .LP \fBstrecpy()\fR copies the \fIinput\fR string, up to a null byte, to the \fIoutput\fR string, expanding non-graphic characters to their equivalent C-language escape sequences (for example, \fB\en\fR, \fB\e001\fR). The \fIoutput\fR argument must point to a space big enough to accommodate the result; four times the space pointed to by \fIinput\fR is guaranteed to be big enough (each character could become \fB\e\fR and 3 digits). Characters in the \fIexceptions\fR string are not expanded. The \fIexceptions\fR argument may be zero, meaning all non-graphic characters are expanded. \fBstrecpy()\fR returns the \fIoutput\fR argument. .sp .LP \fBstreadd()\fR is identical to \fBstrecpy()\fR, except that it returns the pointer to the null byte that terminates the output. .SH EXAMPLES .LP \fBExample 1\fR Example of expanding and compressing escape codes. .sp .in +2 .nf /* expand all but newline and tab */ strecpy( output, input, "\en\et" ); /* concatenate and compress several strings */ cp = strcadd( output, input1 ); cp = strcadd( cp, input2 ); cp = strcadd( cp, input3 ); .fi .in -2 .sp .SH ATTRIBUTES .sp .LP See \fBattributes\fR(7) for descriptions of the following attributes: .sp .TS tab( ) box; cw(2.75i) |cw(2.75i) lw(2.75i) |lw(2.75i) . ATTRIBUTE TYPE ATTRIBUTE VALUE _ MT-Level MT-Safe .TE .sp .SH SEE ALSO .sp .LP \fBstring\fR(3C), \fBstrfind\fR(3GEN), \fBattributes\fR(7)