title: How to find substring from string?
body: <p>How do I find a substring from the string path "/user/desktop/abc/post/" using C/C++? I want to check if folder "abc" is present or not in that path.</p>
  
  <p>Path is character pointer <code>char *ptr = "/user/desktop/abc/post/";</code></p>