some work
[svn/Cll1h/.git] / demos / shell.c
... / ...
CommitLineData
1#include "cll1.h"
2#define STRLEN 1024
3
4program
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.365532 seconds and 4 git commands to generate.