Mercurial > aewl
comparison menu.c @ 6:e0cefb3981c8
implemented pipe_spawn
author | Anselm R. Garbe <garbeam@wmii.de> |
---|---|
date | Tue, 11 Jul 2006 11:10:05 +0200 |
parents | e5018cae273f |
children | 49e2fc9fb94f |
comparison
equal
deleted
inserted
replaced
5:e5018cae273f | 6:e0cefb3981c8 |
---|---|
354 int i; | 354 int i; |
355 XSetWindowAttributes wa; | 355 XSetWindowAttributes wa; |
356 char *maxname; | 356 char *maxname; |
357 XEvent ev; | 357 XEvent ev; |
358 | 358 |
359 char buf[256]; | |
360 | |
361 fputs(STATUSCMD, stdout); | |
362 fputs("\n", stdout); | |
363 pipe_spawn(buf, sizeof(buf), NULL, STATUSCMD); | |
364 fputs(buf, stderr); | |
365 | |
366 return 0; | |
367 | |
359 /* command line args */ | 368 /* command line args */ |
360 for(i = 1; i < argc; i++) { | 369 for(i = 1; i < argc; i++) { |
361 if (argv[i][0] == '-') | 370 if (argv[i][0] == '-') |
362 switch (argv[i][1]) { | 371 switch (argv[i][1]) { |
363 case 'v': | 372 case 'v': |