Lines Matching refs:FILE
5 * you may not use this file except in compliance with the License.
17 * @file picopal.c
285 /* file access */
294 /* 'fopen' opens the file with name 'filename'. Depending on
296 'PICOPAL_TEXT_READ' : Opens an existing text file for reading.
297 The file is positioned at the beginning of the file.
298 'PICOPAL_TEXT_WRITE' : Opens and truncates an existing file or creates a new
299 text file for writing. The file is positioned at the
301 'PICOPAL_BIN_READ' : Opens an existing binary file for reading.
302 The file is positioned at the beginning of the file.
303 'PICOPAL_BIN_WRITE' : Opens and truncates an existing file or creates a new
304 binary file for writing. The file is positioned at the
306 If the opening of the file is successful a file pointer is given
307 back. Otherwise a NIL-File is given back.
347 return (0 == fflush((FILE *)f)) ? PICO_OK : PICO_EOF;
353 return (0 == fclose((FILE *)f)) ? PICO_OK : PICO_EOF;
363 fgetpos((FILE *)stream,&fpos);
365 len = ftell((FILE *)stream);
366 fsetpos((FILE *)stream,&fpos);
367 clearerr((FILE *)stream);
374 return (0 != feof((FILE *)stream));
380 return (0 == fseek((FILE *)f, offset, seekmode)) ? PICO_OK : PICO_EOF;
387 res = fgetc((FILE *)f);
399 return (picopal_objsize_t) fread(ptr, objsize, nobj, (FILE *)f);
402 picopal_objsize_t picopal_fwrite_bytes (picopal_File f, void * ptr, picopal_objsize_t objsize, picopal_uint32 nobj){ return (picopal_objsize_t) fwrite(ptr, objsize, nobj, (FILE *)f);}