okutil_write_file_section_keys

 

Description

Write key value of a section into a file.

Syntax

int okutil_write_file_section_keys( LPCSTR lpcszFilename, LPCSTR lpcszSecName, StringArray * pvsKeys, StringArray * pvsValues, StringArray * pvsComments = NULL )

Parameters

lpcszFilename
[input] fullpath file name
lpcszSecName
[input] the section name to write the key names to
pvsKeys
[input] all keys name, NULL or empty will result in an empty section
pvsValues
[input] value of each key
pvsComments
[input] comment of each value

Return

The file size if success, else return minus value for failure.

Examples

See examples of okutil_read_file_section_keys

Remark

See Also

okutil_read_file_section_keys, okutil_write_file_section

header to Included

origin.h

Reference