fallout2-ce/src/string_parsers.h

13 lines
561 B
C

#ifndef STRING_PARSERS_H
#define STRING_PARSERS_H
typedef int(StringParserCallback)(char* string, int* valuePtr);
int strParseInt(char** stringPtr, int* valuePtr);
int strParseStrFromList(char** stringPtr, int* valuePtr, const char** list, int count);
int strParseStrFromFunc(char** stringPtr, int* valuePtr, StringParserCallback* callback);
int strParseIntWithKey(char** stringPtr, const char* key, int* valuePtr, const char* delimeter);
int strParseKeyValue(char** stringPtr, char* key, int* valuePtr, const char* delimeter);
#endif /* STRING_PARSERS_H */