Graphite  Version 3
An experimental 3D geometry processing program
stdio_compat.h File Reference

Functions to facilitate porting old C code, that provide an stdio-like API acting on C++ streams. More...

#include <OGF/basic/common/common.h>
#include <iostream>
#include <stdio.h>

Go to the source code of this file.

Namespaces

 OGF
 Global Graphite namespace.
 

Functions

size_t OGF::fread (void *ptr_in, size_t size, size_t nbelt, std::istream *in)
 Reads elements from a stream. More...
 
int OGF::fgetc (std::istream *in)
 reads a character from a stream. More...
 
int OGF::fseek (std::istream *in, long offset, int whence)
 moves the current position within a stream More...
 
size_t OGF::ftell (std::istream *in)
 gets the current position in a stream. More...
 
void OGF::fclose (std::istream *in)
 closes a stream. More...
 

Detailed Description

Functions to facilitate porting old C code, that provide an stdio-like API acting on C++ streams.

Definition in file stdio_compat.h.