Function ndpi_strip_leading_trailing_spaces
- Defined in File ndpi_api.h 
Function Documentation
- 
char *ndpi_strip_leading_trailing_spaces(char *ptr, int *ptr_len)
- Remove leading and trailing whitespace from a string in-place. - Parameters:
- ptr – Pointer to the string to process (modified in-place) 
- ptr_len – Pointer to the string length (updated to new length after stripping) 
 
- Returns:
- Pointer to the start of the trimmed string (within the original buffer)