37 #ifndef H_OGF_BASIC_IO_STDIO_COMPAT_H
38 #define H_OGF_BASIC_IO_STDIO_COMPAT_H
65 void* ptr_in,
size_t size,
size_t nbelt, std::istream* in
67 char* ptr = (
char *)ptr_in ;
69 for(j=0; j<nbelt; j++) {
70 for(
size_t i=0; i<size; i++) {
86 inline int fgetc(std::istream* in) {
103 std::istream* in,
long offset,
int whence
105 if(whence == SEEK_CUR) {
106 offset += in->tellg() ;
108 ogf_assert(whence != SEEK_END) ;
118 inline size_t ftell(std::istream* in) {
119 return size_t(in->tellg()) ;
Global Graphite namespace.
int fgetc(std::istream *in)
reads a character from a stream.
size_t ftell(std::istream *in)
gets the current position in a stream.
size_t fread(void *ptr_in, size_t size, size_t nbelt, std::istream *in)
Reads elements from a stream.
int fseek(std::istream *in, long offset, int whence)
moves the current position within a stream
void fclose(std::istream *in)
closes a stream.
Definitions common to all include files in the basic library.