title: C++: Extract string after dot
body: <p>I'm trying to extract the file extension part in a string value.</p>
  
  <p>For example, assuming the string value is "file.cpp", I need to extract the "cpp" or ".cpp" part. </p>
  
  <p>I've tried using strtok() but it doesn't return what I am looking for. </p>