Closed wishmiss closed 3 years ago
This function is meant to process proper strings, including "
at the end, before reaching CRLF characters.
But if the string dose not end with ", such as model serial number command. After parsing, this string contains CRLF.
calling gsmi_parse_string will return a new string end of CRLF, Is this result expected?
In my project, i combining model serial number with other string, subsequent processing errors due to this extra string.
`uint8_t gsmi_parse_string(const char* src, char dst, size_t dst_len, uint8_t trim) { const char p = src; size_t i;
}`