int main(int argc, char **argv) { __INIT(argc, argv); __IMPORT(CmdLine__init); __IMPORT(Console__init); __IMPORT(Strings__init); __REGMAIN("CmdLineTest", 0); /* BEGIN */ CmdLineTest__for__2 = CmdLine_ParamCount; CmdLineTest_n = 1; while (CmdLineTest_n <= CmdLineTest__for__2) { CmdLine_GetParam(CmdLineTest_n, (void*)CmdLineTest_param, 1024); Console_WriteInt(CmdLineTest_n); Console_WriteStr((CHAR*)":", 2); Console_WriteStrLn(CmdLineTest_param, 1024); CmdLineTest__for__1 = (SHORTINT)Strings_Length((void*)CmdLineTest_param, 1024) - 1; CmdLineTest_i = 0; while (CmdLineTest_i <= CmdLineTest__for__1) { Console_WriteInt((SHORTINT)CmdLineTest_param[__X(CmdLineTest_i, 1024)]); Console_WriteStr((CHAR*)",", 2); CmdLineTest_i += 1; } Console_WriteLn(); CmdLineTest_n += 1; } __FINI; }
int main(int argc, char **argv) { __INIT(argc, argv); __IMPORT(Basic__init); __REGMAIN("Hello", 0); /* BEGIN */ Basic_PRSTR((CHAR*)"Hello World", 12); __FINI; }
int main(int argc, char **argv) { __INIT(argc, argv); __IMPORT(CmdlnTexts__init); __IMPORT(Watson0__init); __REGMAIN("WatsonCmd", 0); /* BEGIN */ WatsonCmd_ShowDef(); __FINI; }
int main(int argc, char **argv) { __INIT(argc, argv); __IMPORT(Args__init); __IMPORT(Console__init); __IMPORT(Files__init); __IMPORT(Texts__init); __REGMAIN("OCatCmd", 0); __REGCMD("Cat", OCatCmd_Cat); /* BEGIN */ OCatCmd_Cat(); __FINI; }
int main(int argc, char **argv) { __INIT(argc, argv); __IMPORT(Basic__init); __IMPORT(Input__init); __REGMAIN("TestInput", 0); /* BEGIN */ Basic_Init(); do { TestInput_key = Input_Read(); Basic_PRCHAR(TestInput_key); } while (!(TestInput_key == '0')); Basic_Quit(); __FINI; }