ee6accf523e49300ae4af2815618c796cdacc0f6
[svn/Cll1h/.git] / demos / shell.c
1 #include "cll1.h"
2 #define STRLEN 1024
3
4 program
5 {
6 char *str;
7 int i=0;
8 string(str,STRLEN);
9
10 shell("echo \"XXX\nYYY\nZZZ\"");
11 input(str,STRLEN) printf("---> %s",str);
12 puts("[EOF]");
13
14 paste("A\nB\nC");
15 input(str,STRLEN) printf("---> %s",str);
16 puts("[EOF]");
17
18 shell("ls");
19 input(str,STRLEN) printf("%d ---> %s",i++,str);
20 puts("[EOF]");
21
22 shell("ls");
23 system("wc -l");
24 puts("[EOF]");
25
26 }
This page took 0.321451 seconds and 3 git commands to generate.