| 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.
| “ | On two occasions I have been asked [by members of Parliament], 'Pray, Mr. Babbage, if you put into the machine wrong figures, will the right answers come out?' I am not able rightly to apprehend the kind of confusion of ideas that could provoke such a question. | ” |
| — Charles Babbage | ||