Hallo, dies ist ein Test.
PWD: /www/data-lst1/unixsoft/unixsoft/kaempfer/.public_html
Running in File Mode
Relative path: ././../../../../../../usr/man/man3gen/bufsplit.3gen
Real path: /usr/share/man/man3gen/bufsplit.3gen
Zurück
'\" te .\" Copyright (c) 1989, AT&T. All rights reserved. .\" Portions Copyright (c) 1997, 2017, Oracle and/or its affiliates. All rights reserved. .TH bufsplit 3GEN "27 November 2017" "Oracle Solaris 11.4" "String Pattern-Matching Library Functions" .SH NAME bufsplit \- split buffer into fields .SH SYNOPSIS .LP .nf cc [ \fIflag\fR ... ] \fIfile\fR ... \fB-lgen\fR [ \fIlibrary\fR ... ] #include <libgen.h> \fBsize_t\fR \fBbufsplit\fR(\fBchar *\fR\fIbuf\fR, \fBsize_t\fR \fIn\fR, \fBchar **\fR\fIa\fR); .fi .SH DESCRIPTION .sp .LP \fBbufsplit()\fR examines the buffer, \fIbuf\fR, and assigns values to the pointer array, \fIa\fR, so that the pointers point to the first \fIn\fR fields in \fIbuf\fR that are delimited by \fBTABs\fR or \fBNEWLINEs.\fR .sp .LP To change the characters used to separate fields, call \fBbufsplit()\fR with \fIbuf\fR pointing to the string of characters, and \fIn\fR and \fIa\fR set to zero. For example, to use colon (\|:\|), period (\|.\|), and comma (\|,\|), as separators along with \fBTAB\fR and \fBNEWLINE:\fR .sp .LP \fBbufsplit (":.,\et\en", 0, (char**)0 );\fR .SH RETURN VALUES .sp .LP The number of fields assigned in the array \fIa\fR. If \fIbuf\fR is zero, the return value is zero and the array is unchanged. Otherwise the value is at least one. The remainder of the elements in the array are assigned the address of the null byte at the end of the buffer. .SH EXAMPLES .LP \fBExample 1\fR Example of \fBbufsplit()\fR function. .sp .in +2 .nf /* * set a[0] = "This", a[1] = "is", a[2] = "a", * a[3] = "test" */ bufsplit("This\etis\eta\ettest\en", 4, a); .fi .in -2 .sp .SH NOTES .sp .LP \fBbufsplit()\fR changes the delimiters to null bytes in \fIbuf\fR. .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 \fBattributes\fR(7)