preliminary work on version 0.7.1 - WARNING, HIGHLY UNSTABLE !
[svn/Cll1h/.git] / demos / arguments1.c
CommitLineData
30628092 1#include "cll1.h"
2
3//try$ make arguments1
4//try$ ./arguments1 -x xxx yyyy -c cccc
5
6program
7{
8 char *ptr;
9
10 arguments
11 {
12 thisargument(ptr);
04a13a6f 13 if(*ptr=='-') then
30628092 14 {
15 printf("Command line switch: -%c ",ptr[1]);
16 nextargument(ptr);
17 printf("followed by: %s\n",ptr);
18 }
19 else
20 printf("Simple argument: %s \n",ptr);
21 }
22 else
23 puts("Bleeeeh, no arguments supplied... :-(");
24}
This page took 0.124504 seconds and 4 git commands to generate.