Function ndpi_add_string_to_automa

Function Documentation

int ndpi_add_string_to_automa(void *_automa, char *str)

Add a string to match to an automata. Same as ndpi_add_string_value_to_automa() with num set to 1

The automata initialized with ndpi_init_automa();
The (sub)string to search (malloc’ed memory)
Return
0 in case of no error, or -1 if an error occurred.