From 9077404b75bc80a529814dd23c2be6f84d4c8f65 Mon Sep 17 00:00:00 2001 From: qorg11 Date: Mon, 1 Jun 2020 22:41:59 +0200 Subject: [PATCH] Rewritten rmdir --- src/rmdir.c | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/src/rmdir.c b/src/rmdir.c index a9b9f85..1ea6c9c 100644 --- a/src/rmdir.c +++ b/src/rmdir.c @@ -1,9 +1,15 @@ #include +#include int main(int argc, char *argv[]) { - while(*argv) { - rmdir(*argv); - *argv++; - } + for(int i = 1; i