mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-22 15:40:19 +00:00
12 lines
259 B
C++
12 lines
259 B
C++
#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;
|
|
}
|