2021-09-20 02:05:35 +00:00
|
|
|
/*******************************************
|
|
|
|
* ARGS - Test/Demo Command Line Arguments *
|
|
|
|
*******************************************/
|
|
|
|
|
|
|
|
//Specify System Header using -H option
|
|
|
|
#include <screen.h02>
|
|
|
|
#include <stddef.h02>
|
|
|
|
#include <stdlib.h02>
|
|
|
|
#include <intlib.h02>
|
|
|
|
#include <args.h02>
|
|
|
|
#include <ctype.h02>
|
|
|
|
#include <stdio.h02>
|
|
|
|
#include <stdiox.h02>
|
|
|
|
#include <string.h02>
|
|
|
|
#include <stringl.h02>
|
|
|
|
|
2021-09-25 19:28:49 +00:00
|
|
|
char c,n,p,r;
|
2021-09-20 02:05:35 +00:00
|
|
|
char arg[128];
|
|
|
|
|
|
|
|
main:
|
|
|
|
|
2021-09-25 19:28:49 +00:00
|
|
|
if (#ARGFLG) putln("ARGS NOT SUPPORTED");
|
|
|
|
|
|
|
|
p = argset(); printf(p, "ARGSET() = %d%n");
|
|
|
|
if (p) putln("NO ARGS SPECIFIED");
|
|
|
|
|
|
|
|
do {
|
|
|
|
r = argget(arg);
|
|
|
|
printf(r, "ARGGET() = %d, ARG = %s%n");
|
|
|
|
} while (r);
|
|
|
|
|
2021-09-20 02:05:35 +00:00
|
|
|
goto exit;
|
|
|
|
|