33 lines
923 B
C
33 lines
923 B
C
#ifndef EASYCSV_STRING_P_H
|
|
#define EASYCSV_STRING_P_H
|
|
|
|
/**
|
|
* Returns char pointer towards the n-th occurence of ',' in a given string
|
|
* This function does not check parameters!
|
|
* This function does not produce errors!
|
|
* @param[in] string of row (string with multiple occurences of ',')
|
|
* @param[in] n-th occurence to place the char pointer
|
|
* @return char pointer towards the n-th occurence of ',' in a given string
|
|
*/
|
|
char*
|
|
easycsv_set_charp_to_value(const char*,
|
|
unsigned int);
|
|
|
|
/**
|
|
* Insert a string in a comma-separated string of sub-strings in a specified position (by comma)
|
|
* @param[in] string to be inserted
|
|
* @param[in] comma-separated string
|
|
* @param[in] specified position of string
|
|
* @param[in] total number of sub-strings BEFORE manipulation
|
|
* @return heap-allocated string
|
|
*/
|
|
char*
|
|
easycsv_insert_string_row(const char*,
|
|
const char*,
|
|
unsigned int,
|
|
unsigned int);
|
|
|
|
|
|
|
|
#endif
|