properties_read propery_find properties_free - functions to allow creating simple property lists from ASCII file data
Lb libutil
typedef struct _properties { struct _properties *next; char *name; char *value; } *properties;
The function
properties_read ();
reads
Fa name = value
pairs from the file descriptor passed in
Fa fd
and returns the head of a new property list, assuming that the
file's contents have been parsed properly, or NULL in case
of error.
The
property_find ();
function returns the associated value string for the property named
Fa name
if found, otherwise NULL.
The value returned may be up to
PROPERTY_MAX_VALUE
bytes in length.
The
properties_free ();
function is used to free the structure returned by
properties_read ();
when it is no longer needed.
Закладки на сайте Проследить за страницей |
Created 1996-2024 by Maxim Chirkov Добавить, Поддержать, Вебмастеру |