GsPropListWrite - geostan_1 - 2024.01

GeoStan Geocoding Suite Reference for Windows, Linux, and z/OS

Product type
Software
Portfolio
Locate
Product family
GeoStan Geocoding Suite
Product
GeoStan Geocoding Suite > GeoStan
Version
2024.01
Language
English
Product name
GeoStan
Title
GeoStan Geocoding Suite Reference for Windows, Linux, and z/OS
Copyright
2024
First publish date
1994
Last updated
2024-07-29
Published on
2024-07-29T23:01:18.924000

Writes the property list to a file or a character string.

Syntax

GsFunStat GsPropListWrite(PropList* pProps, gs_cont_str outfile, pstr pBuffer, intsu bufLen);

Arguments

pProps    Pointer to property list structure. Input.

outfile    File containing the list properties, or NULL. Output.

pBuffer   String buffer to write to outfile is NULL. Output.

bufLen    Length of pBuffer (writing should not exceed bufLen). Input.

Return Values

GS_ERROR

GS_SUCCESS

Prerequisites

GsPropListCreate()

Notes

If the outfile argument value is "stdout", then this function writes the properties to standard out. If the outfiles argument is NULL, then this function writes the properties to the pBuffer string.

Example

GsFunStat retval;
PropList findProps;
retval = GsPropListCreate(&findProps, GS_FIND_PROP_LIST_TYPE);
retval = GsPropSetBool(&findProps, GS_FIND_Z_CODE, TRUE);
retval = GsPropSetLong(&findProps, GS_FIND_STREET_OFFSET, 50);
retval = GsPropListWrite(&writeProps, "testprop.txt", NULL, 0);