Could be shortened to:
```
printf("%s\n", strrchr(argv[1], '/') + 1);
```