char *_pwdb_delete_string(char *s)
overwrite the string 's
' and return NULL
. usage:
old_ptr = _pwdb_delete(old_ptr);
char *_pwdb_dup_string(const char *s)
malloc()
a copy of the string 's
'. Return its address or
NULL
if s == NULL
or on error.
this memory will not be free()
'd by a call to
pwdb_end()
.
void pwdb_print_pwdb_struct(const struct pwdb *p)
Dump the contents of *p
to the stderr
. Useful for debugging.
static struct pwdb *_pwd_check(const struct pwdb *p)
Establish if the pwdb structure was allocated by the library This library should not honor requests from elsewhere. return the local version (non-const) of this structure or NULL on error.
this function is strictly designed for the use of the generic code. Both modules and applications should never need to call it.