File: testexec.c

package info (click to toggle)
bayonne 2.3.2-3
  • links: PTS, VCS
  • area: main
  • in suites: lenny
  • size: 11,180 kB
  • ctags: 3,662
  • sloc: cpp: 38,791; sh: 9,323; ansic: 1,391; makefile: 485; perl: 471; java: 405; cs: 402; php: 354; python: 293
file content (18 lines) | stat: -rw-r--r-- 268 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#include <stdio.h>
#include <stdlib.h>
#include <ctype.h>

int main(int argc, char **argv)
{
	char lbuf[512];

	for(;;)
	{
		if(!fgets(lbuf, sizeof(lbuf), stdin) || feof(stdin))
			break;
		if(!isalnum(lbuf[0]))
			break;
		fprintf(stderr, "%s", lbuf);
	}
	exit(0);
}