*** UNIX MANUAL PAGE BROWSER ***

A Nergahak database for man pages research.

Navigation

Directory Browser

1Browse 4.4BSD4.4BSD
1Browse Digital UNIXDigital UNIX 4.0e
1Browse FreeBSDFreeBSD 14.3
1Browse MINIXMINIX 3.4.0rc6-d5e4fc0
1Browse NetBSDNetBSD 10.1
1Browse OpenBSDOpenBSD 7.7
1Browse UNIX v7Version 7 UNIX
1Browse UNIX v10Version 10 UNIX

Manual Page Search

Manual Page Result

0 Command: property | Section: 3 | Source: FreeBSD | File: property.3.gz
PROPERTIES(3) FreeBSD Library Functions Manual PROPERTIES(3) NAME properties_read, property_find, properties_free - functions to allow creating simple property lists from ASCII file data LIBRARY System Utilities Library (libutil, -lutil) SYNOPSIS #include <libutil.h> properties properties_read(int fd); char * property_find(properties list, const char *name); void properties_free(properties list); DESCRIPTION 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. FILE FORMAT Each property in the file is assumed to have the format of name = value where name is an alphanumeric string (and any punctuation not including the `=' character) and value is an arbitrary string of text terminated by a newline character. If newlines are desired, the entire value should be enclosed in { } (curly-bracket) characters. Any line beginning with a # or ; character is assumed to be a comment and will be ignored. AUTHORS Jordan Hubbard BUGS Simplistic. FreeBSD 14.1-RELEASE-p8 October 7, 1998 FreeBSD 14.1-RELEASE-p8

Navigation Options