11 fp = popen("/usr/bin/gnuplot","w");
13 fprintf(stderr,"Problems\n");
18 printf("Input command:>");
21 printf("comand is %s\n",cmd);
22 if((len = strlen(cmd)) > 1) {
29 printf(" close status = %d\n",pclose(fp));
38 int count; float quant; char units[21], item[21];
41 fp = fopen("/tmp/xxeicxx","w+");
42 fputs("2 quarts of oil\n"
43 "-12.8 degrees Celsius\n"
49 fseek(fp,0L,SEEK_SET);
51 while(!feof(fp) && i < 10) {
52 units[0] = item[0] ='\0';
53 count = fscanf(fp,"%f%20s of %20s",&quant, units, item);
55 printf("count = [%d] quant = [%g] units = [%s] item = [%s]\n",
56 count,quant,units,item);
67 fprintf(stdout,"%s = %b\n","binary 100", 100);
68 fprintf(stdout,"|%!15.2f|\n", 13.3333);
74 char *buf = "Hello world Hello world Hello world Hello world\n";
75 for(i=0;buf[i] != '\0'; ++i)