11 " OUT OBUF2,OLEN2 ;comment\n",
12 " OUT OBUF1,OLEN1 \n",
13 " OUT OBUF1,OLEN1 \n",
14 " OUT OBUF2,OLEN2 \n",
15 " OUT OBUF1, OLEN1 \n",
20 CMDLINE *testcl = malloc(sizeof(CMDLINE));
22 for(i = 0; i < sizeof testline /sizeof testline[0]; i++) {
23 printf("%d: %s", i, testline[i]);
24 testcl = linetok(testline[i]);
28 if(testcl->label != NULL){
29 printf("cl->label: %s\n", testcl->label);
31 if(testcl->cmd != NULL){
32 printf("cl->cmd: %s\n", testcl->cmd);
33 printf("cl->opdc: %d\n", testcl->opd->opdc);
34 for(j = 0; j < testcl->opd->opdc; j++) {
35 printf("cl->opdv[%d]: %s\n", j, testcl->opd->opdv[j]);
40 printf("\terror - %d: %s\n", cerrno, cerrmsg);