Pepe Guay
2003-07-02 21:30:14 UTC
Me revienta un programa que estoy haciendo por culpa de una función muy
sencillita. Es esta:
int tam_archivo(char* nom)
{
FILE *f;
int tam;
f = open(nom,'r');
if (f == NULL) {
fprintf(stderr,"El fichero %s no existe\n",nom);
}
tam = filelength(fileno(f));
fclose(f);
return tam;
}
warning: assignment makes pointer from integer without a cast
sencillita. Es esta:
int tam_archivo(char* nom)
{
FILE *f;
int tam;
f = open(nom,'r');
if (f == NULL) {
fprintf(stderr,"El fichero %s no existe\n",nom);
}
tam = filelength(fileno(f));
fclose(f);
return tam;
}
warning: assignment makes pointer from integer without a cast