GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
dsv_line_read(3) FreeBSD Library Functions Manual dsv_line_read(3)

#include <xtend/dsv.h>
-lbiolibc

int     dsv_line_read(dsv_line_t *dsv_line, FILE *stream, const char *delims)

dsv_line:   Pointer to a dsv_line_t structure to hold the fields
stream:     FILE stream from which the line is read
delims:     Array of acceptable delimiters

Read a line of an arbitrary DSV file, storing the fields in a dsv_line_t structure, which contains an array of strings, each holding one field from the line, and an an array of delimiters, each holding the character that ended the corresponding field. Note that each field could potentially end with a different delimiter, as multiple delimiters can be specified.

This function serves a purpose similar to the split() functions present in many languages. However, it does not need to read an entire line into a character array and then split the array. Instead, it separates fields as they are read from the input stream.

Actual delimiter of last field (should be newline)

dsv_read_field(3), dsv_read_field_malloc(3), dsv_skip_field(3), dsv_skip_rest_of_line(3)


Search for    or go to Top of page |  Section 3 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.