fork(1) download
  1. #include <iostream>
  2. #include <cstring>
  3.  
  4. using namespace std;
  5.  
  6. int main() {
  7. char str[] ="D:\\Google Drive\\My Files\\Test.zip";
  8. char * buffer = strrchr(str, '\\');
  9. cout << buffer + 1;
  10. return 0;
  11. }
Success #stdin #stdout 0s 3460KB
stdin
Standard input is empty
stdout
Test.zip