blob: cff1cc6c7b1581130d4b2b916a0bacd389f3aa05 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
#include <AK/FileSystemPath.h>
#include <stdio.h>
int main(int argc, char** argv)
{
if (argc != 2) {
printf("usage: basename <path>\n");
return 1;
}
printf("%s\n", FileSystemPath(argv[1]).basename().characters());
return 0;
}
|