File: bytecount.c

package info (click to toggle)
floppybackup 1.3-3
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 100 kB
  • ctags: 67
  • sloc: ansic: 629; makefile: 46; sh: 10
file content (18 lines) | stat: -rw-r--r-- 249 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
/*
 * El crapo that slows down backupping :-)
 */

#include <stdio.h>


int main()
{
	int c,bytecount=0;;
	while((c=getchar())!=EOF){
		putchar(c);
		++bytecount;
	}
	fprintf(stderr,"\nbytecount: %d bytes passed through.\n",bytecount);
	exit(0);
}