Main index | Section 3 | Options |
#include <sys/types.h>
#include <stdio.h>
#include <security/pam_appl.h>
#include <security/openpam.h>
The openpam_readline() function reads a line from a file, and returns it in a NUL-terminated buffer allocated with malloc(3).
The openpam_readline() function performs a certain amount of processing on the data it reads:
If lineno is not NULL, the integer variable it points to is incremented every time a newline character is read.
If lenp is not NULL, the length of the line (not including the terminating NUL character) is stored in the variable it points to.
The caller is responsible for releasing the returned buffer by passing it to free(3).
The OpenPAM library is maintained by Dag-Erling Sm/orgrav <Mt des@des.no>.
OPENPAM_READLINE (3) | February 24, 2019 |
Main index | Section 3 | Options |
Please direct any comments about this manual page service to Ben Bullock. Privacy policy.