Function gdal_sys::CSLAddString
source · pub unsafe extern "C" fn CSLAddString(
papszStrList: *mut *mut c_char,
pszNewString: *const c_char
) -> *mut *mut c_char
Expand description
\file cpl_string.h
Various convenience functions for working with strings and string lists.
A StringList is just an array of strings with the last pointer being NULL. An empty StringList may be either a NULL pointer, or a pointer to a pointer memory location with a NULL value.
A common convention for StringLists is to use them to store name/value
lists. In this case the contents are treated like a dictionary of
name/value pairs. The actual data is formatted with each string having
the format “
To some extent the CPLStringList C++ class can be used to abstract managing string lists a bit but still be able to return them from C functions.