1 .\" Generated from openpam_straddch.c by gendoc.pl
2 .\" $OpenPAM: openpam_straddch.c 938 2017-04-30 21:34:42Z des $
8 .Nd add a character to a string, expanding the buffer if needed
11 .In security/pam_appl.h
12 .In security/openpam.h
14 .Fn openpam_straddch "char **str" "size_t *size" "size_t *len" "int ch"
18 function appends a character to a dynamically
19 allocated NUL-terminated buffer, reallocating the buffer as needed.
23 argument points to a variable containing either a pointer to
26 If the value of the variable pointed to by
37 argument point to variables used to hold the size
38 of the buffer and the length of the string it contains, respectively.
42 is the character that should be appended to
45 is 0, nothing is appended, but a new buffer is
48 is NULL. This can be used to
55 If a new buffer is allocated or an existing buffer is reallocated to
56 make room for the additional character,
65 function ensures that the buffer is always
70 function is successful, it increments the
71 integer variable pointed to by
76 Otherwise, it leaves the variables pointed to by
90 function returns 0 on success and -1 on failure.
97 function is an OpenPAM extension.
101 function and this manual page were
103 .An Dag-Erling Sm\(/orgrav Aq Mt des@des.no .