nfv_get_linedata

Retrieves data in file under key and name with reference to line numbers.

Syntax

stock nfv_get_linedata(const filename[], const key[], name[], data[]="", len=0, const identifier=';', const key_line_start=0, &key_line_find=0, const name_line_start=0, &name_line_find=0, name_copy[], const name_len=0)

Usage

filename The file location to search for the data.
key The key within the file to look for. Set to "" for no key.
name The name under key to look for. Set to NFV_WILDCARD for any name.
data The string that will contain the data retrieved.
len The size of the data string.
identifier The character used to identify different keys.
key_line_start Where to start searching for key.
key_line_find Where the key was found.
name_line_start Where to start searching for name.
name_line_find Where the name was found.
name_copy The string that will contain the name of the data retrieved. Only used with NFV_WILDCARD for name.
name_len If specified, the size of the name found to copy. Only used with NFV_WILDCARD for name.

Return

1 — if successful, 0 on failure.

Defined in nfvault.inc at line 2579 . This documentation was automatically generated from source.