From 3a2a7fe7aa076698446ce57ab43cf20b8ffc2c7f Mon Sep 17 00:00:00 2001 From: Philippe Pittoli Date: Mon, 19 Sep 2011 00:00:39 +0200 Subject: [PATCH] works --- C_Language/skel_getopts.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/C_Language/skel_getopts.c b/C_Language/skel_getopts.c index 1a29617..f922a7c 100644 --- a/C_Language/skel_getopts.c +++ b/C_Language/skel_getopts.c @@ -1,6 +1,7 @@ #include #include #include +#include int main(int argc, char * argv[]) { @@ -28,6 +29,7 @@ int main(int argc, char * argv[]) fprintf(stdout,"erreur : %s\n",optopt); break; } + } // s'il reste des options if(argc != optind) {