All pastes #799792 Raw Edit

Untitled

public text v1 · immutable
#799792 ·published 2007-11-27 21:43 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);
		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");
}