Created
November 7, 2016 15:17
-
-
Save fvandepitte/9b5460a74c014983032a2985ff10247e to your computer and use it in GitHub Desktop.
Gist created by fiddle.jyt.io
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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