Fix strncmp len
Remove function to make example runnable