TPCCLIB
|
Functions for processing strings with quotation marks. More...
#include "libtpcmisc.h"
Go to the source code of this file.
Functions | |
char * | strstr_noquotation (const char *str1, const char *str2) |
int | strnCopyClean (char *str1, const char *str2, int maxlen) |
Functions for processing strings with quotation marks.
Definition in file quots.c.
int strnCopyClean | ( | char * | str1, |
const char * | str2, | ||
int | maxlen ) |
Copy str2 to str1, removing any quotation marks around the string, and making sure that string fits to str2.
str1 | Pointer to pre-allocated result string with length of at least maxlen characters, including NULL character |
str2 | Pointer to the original string; not changed in this function |
maxlen | Max length of str1, including the end NULL |
Definition at line 52 of file quots.c.
Referenced by upetHeaderReadParameter().
char * strstr_noquotation | ( | const char * | str1, |
const char * | str2 ) |
The strstr_noquotation() function returns a pointer to the first occurrence in the string pointed to by str1, excluding parts that are inside quotation marks "" or '', of the string pointed to by str2.
str1 | Pointer to string to be searched |
str2 | Pointer to string with quotation marks |
Definition at line 17 of file quots.c.
Referenced by iftRead().