| Main index | Section 3 | 日本語 | Options |
#include <libutil.h>
typedef struct _properties {
struct _properties *next;
char *name;
char *value;
} *properties;
The function properties_read() reads name, =, value pairs from the file descriptor passed in 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 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.
| PROPERTIES (3) | October 7, 1998 |
| Main index | Section 3 | 日本語 | Options |
Please direct any comments about this manual page service to Ben Bullock. Privacy policy.
| “ | Ken Thompson has an automobile which he helped design. Unlike most automobiles, it has neither speedometer, nor gas gauge, nor any of the other numerous idiot lights which plague the modern driver. Rather, if the driver makes a mistake, a giant “?” lights up in the center of the dashboard. “The experienced driver,” says Thompson, “will usually know what's wrong.” | ” |