Skip to content

Instantly share code, notes, and snippets.

@fvandepitte
Created November 7, 2016 15:17
Show Gist options
  • Save fvandepitte/9b5460a74c014983032a2985ff10247e to your computer and use it in GitHub Desktop.
Save fvandepitte/9b5460a74c014983032a2985ff10247e to your computer and use it in GitHub Desktop.
Gist created by fiddle.jyt.io
#include <iostream>
#include <string.h>
int main ()
{
char const *path = "/Users/user/test/tëst/test";
char const *wp = "/Users/user/test/tëst";
if (strncmp (wp,path,strlen(wp)) == 0)
{
std::cout << "Did match" << std::endl;
}else {
std::cout << "Did not match" << std::endl;
}
return 0;
}
auto result = main();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment