#include <dwc.h>
int DWC_GetCommonValueString(const char *key,
char *value,
const char *string,
char separator);key |
Pointer to the key string corresponding to the value string you want to get. |
value |
Pointer to the storage destination of the value string you want to get. |
string |
Pointer to the key/value string. |
separator |
Character used to indicate the start of each of the strings in the key/value string. |
String length of value that corresponds to key (not including NULL terminator).
Specify NULL for the value argument to check the length of the string only.
Returns -1 when a key without a corresponding value is specified.
Gets the value string corresponding to the string specified with key from the key/value string specified with string.
The key/value string consists of a string specified by key and a string specified by value; to indicate the start of each string, the separator character is added for use as a symbol.
For example, when calling this function and specifying string="/key1/value1/key2/value2", key="key1", and separator='/', the string "value1" is returned to value.
This is useful in the creation of save data for the data storage server. For more information about saving to the data storage server, see the DWC_SavePublicDataAsync and DWC_SavePrivateDataAsync functions.
To create a key/value string, use the DWC_SetCommonKeyValueString or DWC_AddCommonKeyValueString functions.
NULL is specified for the argument value.For the change log prior to 5.1 PR2, click here.
CONFIDENTIAL