All pastes #829072 Raw Edit

Someone

public text v1 · immutable
#829072 ·published 2007-12-22 22:14 UTC
rendered paste body
#include <stdio.h>

#include <stdlib.h>

int main()
{
	FILE *f;
	
	char *buffer;
	
	long size;
	
	f = fopen("url", "r");
	
	if( f == NULL ) printf("c'est null\n");
	
	fseek(f, 0, SEEK_END);
	
	size = ftell(f);
	
	buffer = (char *) malloc(sizeof(char) * size + 1);
	
	fgets(buffer, size, f);
	
	printf("+%s+\n", buffer);
	
	return 0;
}