|
NAMEopenpam_readlinev —
read a line from a file and split it into words
SYNOPSIS#include <sys/types.h>
#include <stdio.h>
#include <security/pam_appl.h>
#include <security/openpam.h>
char **
DESCRIPTIONTheopenpam_readlinev () function reads a line from a
file, splits it into words according to the rules described in the
openpam_readword(3)
manual page, and returns a list of those words.
If lineno is not
If lenp is not RETURN VALUESIf successful, theopenpam_readlinev () function returns
a pointer to a dynamically allocated array of pointers to individual
dynamically allocated NUL-terminated strings, each containing a single word,
in the order in which they were encountered on the line. The array is
terminated by a NULL pointer.
The caller is responsible for freeing both the array and the individual strings by passing each of them to free(3). If the end of the line was reached before any words were read,
The
SEE ALSOopenpam_readline(3), openpam_readword(3), pam(3)STANDARDSTheopenpam_readlinev () function is an OpenPAM
extension.
AUTHORSTheopenpam_readlinev () function and this manual page
were developed by Dag-Erling Smørgrav
<des@des.no>.
Visit the GSP FreeBSD Man Page Interface. |