Function ndpi_strdup
Defined in File ndpi_api.h
Function Documentation
-
char *ndpi_strdup(const char *s)
Duplicate a string using nDPI’s memory allocator. The returned string must be freed with ndpi_free().
- Parameters:
s – String to duplicate (null-terminated)
- Returns:
Pointer to newly allocated string copy, or NULL on failure