1 .\" Generated from openpam_readlinev.c by gendoc.pl
2 .\" $Id: openpam_readlinev.c 890 2016-01-11 16:22:09Z des $
4 .Dt OPENPAM_READLINEV 3
8 .Nd read a line from a file and split it into words
12 .In security/pam_appl.h
13 .In security/openpam.h
15 .Fn openpam_readlinev "FILE *f" "int *lineno" "int *lenp"
19 function reads a line from a file, splits it
20 into words according to the rules described in the
21 .Xr openpam_readword 3
22 manual page, and returns a list of those words.
28 the integer variable it points to is
29 incremented every time a newline character is read.
30 This includes quoted or escaped newline characters and the newline
31 character at the end of the line.
37 the number of words on the line is stored in the
38 variable to which it points.
42 function returns a pointer to a
43 dynamically allocated array of pointers to individual dynamically
44 allocated NUL-terminated strings, each containing a single word, in the
45 order in which they were encountered on the line.
46 The array is terminated by a
50 The caller is responsible for freeing both the array and the individual
51 strings by passing each of them to
54 If the end of the line was reached before any words were read,
56 returns a pointer to a dynamically allocated array
63 function can fail and return
69 The end of the file was reached before any words were read;
76 returns a non-zero value.
78 The end of the file was reached while a quote or backslash escape
86 returns a non-zero value.
88 An error occurred while reading from the file;
92 returns a non-zero value and
105 returns a non-zero value, and
107 may or may not return
111 .Xr openpam_readline 3 ,
112 .Xr openpam_readword 3 ,
116 .Fn openpam_readlinev
117 function is an OpenPAM extension.
120 .Fn openpam_readlinev
121 function and this manual page were
123 .An Dag-Erling Sm\(/orgrav Aq Mt des@des.no .