Loading docs/examples/fopen.c +4 −4 Original line number Diff line number Diff line Loading @@ -205,7 +205,7 @@ static int fill_buffer(URL_FILE *file, size_t want) } /* use to remove want bytes from the front of a files buffer */ static int use_buffer(URL_FILE *file,int want) static int use_buffer(URL_FILE *file, size_t want) { /* sort out buffer */ if((file->buffer_pos - want) <=0) { Loading Loading @@ -375,7 +375,7 @@ char *url_fgets(char *ptr, size_t size, URL_FILE *file) switch(file->type) { case CFTYPE_FILE: ptr = fgets(ptr,size,file->handle.file); ptr = fgets(ptr, (int)size, file->handle.file); break; case CFTYPE_CURL: Loading Loading @@ -451,7 +451,7 @@ int main(int argc, char *argv[]) URL_FILE *handle; FILE *outf; int nread; size_t nread; char buffer[256]; const char *url; Loading Loading
docs/examples/fopen.c +4 −4 Original line number Diff line number Diff line Loading @@ -205,7 +205,7 @@ static int fill_buffer(URL_FILE *file, size_t want) } /* use to remove want bytes from the front of a files buffer */ static int use_buffer(URL_FILE *file,int want) static int use_buffer(URL_FILE *file, size_t want) { /* sort out buffer */ if((file->buffer_pos - want) <=0) { Loading Loading @@ -375,7 +375,7 @@ char *url_fgets(char *ptr, size_t size, URL_FILE *file) switch(file->type) { case CFTYPE_FILE: ptr = fgets(ptr,size,file->handle.file); ptr = fgets(ptr, (int)size, file->handle.file); break; case CFTYPE_CURL: Loading Loading @@ -451,7 +451,7 @@ int main(int argc, char *argv[]) URL_FILE *handle; FILE *outf; int nread; size_t nread; char buffer[256]; const char *url; Loading