Lines Matching refs:FILE
36 FILE *file = fopen(filename, mode); in T_FileStream_open()
78 fclose((FILE*)fileStream); in T_FileStream_close()
84 FILE* temp = fopen(filename, "r"); in T_FileStream_file_exists()
107 return static_cast<int32_t>(fread(addr, 1, len, (FILE*)fileStream)); in T_FileStream_read()
114 return static_cast<int32_t>(fwrite(addr, 1, len, (FILE*)fileStream)); in T_FileStream_write()
120 rewind((FILE*)fileStream); in T_FileStream_rewind()
126 int32_t c = fputc(ch, (FILE*)fileStream); in T_FileStream_putc()
133 int c = fgetc((FILE*)fileStream); in T_FileStream_getc()
141 int32_t c = ungetc(ch, (FILE*)fileStream); in T_FileStream_ungetc()
148 int32_t c = fgetc((FILE*)fileStream); in T_FileStream_peek()
149 return ungetc(c, (FILE*)fileStream); in T_FileStream_peek()
155 return fgets(buffer, length, (FILE*)fileStream); in T_FileStream_readLine()
161 return fputs(buffer, (FILE*)fileStream); in T_FileStream_writeLine()
167 int32_t savedPos = ftell((FILE*)fileStream); in T_FileStream_size()
172 fseek((FILE*)fileStream, 0, SEEK_END); in T_FileStream_size()
173 size = (int32_t)ftell((FILE*)fileStream); in T_FileStream_size()
174 fseek((FILE*)fileStream, savedPos, SEEK_SET); in T_FileStream_size()
181 return feof((FILE*)fileStream); in T_FileStream_eof()
193 return (fileStream == 0 || ferror((FILE*)fileStream)); in T_FileStream_error()