例をよく読んでなかった
#include <stdio.h>
#include <string.h>
int main(void)
{ printf("%s", strchr("c:\\abc\\def\\ghi.txt", '\\')); return 0; }