mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-26 01:20:25 +00:00
17 lines
300 B
C++
17 lines
300 B
C++
#include <errno.h>
|
|
#include <stdio.h>
|
|
#include <unistd.h>
|
|
|
|
int main(int argc, char** argv)
|
|
{
|
|
if (argc != 2) {
|
|
fprintf(stderr, "usage: rmdir <path>\n");
|
|
return 1;
|
|
}
|
|
int rc = rmdir(argv[1]);
|
|
if (rc < 0) {
|
|
perror("rmdir");
|
|
return 1;
|
|
}
|
|
return 0;
|
|
}
|