bufsplit(3G)bufsplit(3G)NAMEbufsplit() - split buffer into fields
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 delim‐
ited by tabs or new-lines.
To change the characters used to separate fields, call with buf point‐
ing to the string of characters, and n and a set to zero. For example,
to use ':', '.', and ',' as separators along with tab and new-line:
To use this interface, link in the libgen library by specifying For
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.
changes the delimiters to null bytes in buf.