Tentativo

From Sistemi Operativi
Revision as of 14:19, 28 October 2013 by Renzo (talk | contribs)
Jump to navigation Jump to search
/* funziona solo se il nome del programma e' quello in fopen */
#include <stdio.h>
int main(void){
	char c;
	FILE *f;
	if (f=fopen("questo.c", "r")){
		while ((c=getc(f))!=EOF)
			printf("%c", c);
		fclose(f);
	}
	return  0;
}