X-Git-Url: http://git.harvie.cz/?a=blobdiff_plain;f=demos%2Farguments1.c;h=552e983b69d7f084926917b1afd7f7f9c803392a;hb=3f49056d3d4121eff6a0777c7b24c13c54fc0953;hp=ae32e11fd85a0f41caeb019c51adf89f48b26ace;hpb=e91cd8804465d035fb231d06874a9e70c7e97f55;p=svn%2FCll1h%2F.git diff --git a/demos/arguments1.c b/demos/arguments1.c index ae32e11..552e983 100644 --- a/demos/arguments1.c +++ b/demos/arguments1.c @@ -1,17 +1,14 @@ #include "cll1.h" -//try to run: ./arguments1 -x xxx yyyy -c cccc +/* try to run: ./arguments1 -x xxx yyyy -c cccc */ program { - Define_str(ptr); - - if_args then + if_args { for_args { - ptr=this_arg; - if (ptr[0]=='-') then + if this_arg[0] == '-') { printf("Command line switch: -%c ",ptr[1]); if (next_arg) then