mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-29 19:10:26 +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;
|
|
}
|