Initial data commit
This commit is contained in:
parent
72d218235f
commit
f23f22d71c
199087 changed files with 3378941 additions and 0 deletions
19
Task/Metaprogramming/C/metaprogramming-7.c
Normal file
19
Task/Metaprogramming/C/metaprogramming-7.c
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
#include <gadget/gadget.h>
|
||||
LIB_GADGET_START
|
||||
|
||||
Main
|
||||
int retVal=0;
|
||||
Assert( Arg_count == 2, fail_input );
|
||||
Get_arg_str( filename, 0 );
|
||||
Get_arg_float( number, 1 );
|
||||
|
||||
Print "First argument (filename) = %s\n", filename;
|
||||
Print "Second argument (a number) = %f\n", number;
|
||||
|
||||
Free secure filename;
|
||||
|
||||
Exception( fail_input ){
|
||||
Msg_yellow("Use:\n ./prog <number>\n");
|
||||
retVal=1;
|
||||
}
|
||||
Return( retVal );
|
||||
Loading…
Add table
Add a link
Reference in a new issue