All pastes #799807 Raw Edit

Stuff

public text v1 · immutable
#799807 ·published 2007-11-27 21:52 UTC
rendered paste body
#include <stdio.h> 
#include <stdlib.h>

int main(int argc, char **argv) {
	FILE *point; 
	char blub;
	int w,l,b;
	w = 0;
	l = 0;
	b = 0;
	char t = ' ';
	
	if(argc>1) {
		
	point = fopen(argv[1], "r");
	
	while(!feof(point)) {
		blub = fgetc(point);
		b++;
		//printf("1. w = %i\n",w);
		if(blub == t) {
			w++;
			printf("2. w = %i\n",w);
		}
		else
		printf("%i \t %i \t %i \n", w, l, b);
	
	}
	fclose(point);
	}
	else
	printf("there is input missing, damnit.\n");
}