Quantcast
Viewing all articles
Browse latest Browse all 64

warning: return makes integer from pointer without a cast

I am trying to read and write a text document and then perform operations on it. #include<stdio.h> #include<string.h> int WRITE(char *FILENAME, char *DATA) { FILE *ptr_file; ptr_file =fopen(FILENAME, "w"); if (!ptr_file) return 1; fprintf(ptr_file,"%s", DATA); fclose(ptr_file); return 0; } char READ(char *FILENAME) { FILE *ptr_file; char buf[1000]; char* ret=""; ptr_file =fopen(FILENAME,"r"); if (!ptr_file) return "FAIL\n"; [...]

The post warning: return makes integer from pointer without a cast appeared first on BlogoSfera.


Viewing all articles
Browse latest Browse all 64

Trending Articles