hpux man page for bufsplit

Query: bufsplit

OS: hpux

Section: 3g

Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar

bufsplit(3G)															      bufsplit(3G)

NAME
bufsplit() - split buffer into fields
SYNOPSIS
DESCRIPTION
examines the buffer, buf, and assigns values to the pointer array, a, so that the pointers point to the first n fields in buf that are delimited by tabs or new-lines. To change the characters used to separate fields, call with buf pointing to the string of characters, and n and a set to zero. For exam- ple, to use ':', '.', and ',' as separators along with tab and new-line: To use this interface, link in the libgen library by specifying For example:
RETURN VALUE
The number of fields assigned in the array a. If buf 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.
EXAMPLES
WARNINGS
changes the delimiters to null bytes in buf.
SEE ALSO
thread_safety(5). bufsplit(3G)
Related Man Pages
cuserid(3) - netbsd
getwd(3c) - hpux
setbuf(3s) - hpux
setvbuf(3s) - hpux
bufsplit(3gen) - opensolaris
Similar Topics in the Unix Linux Community
How to list file size on HPUX?
How to extract every repeated string between two specific string?
Sequence extraction
Shopt -s histappend