index.htmlMain Page    classes.htmlAlphabetical List    annotated.htmlData Structures    files.htmlFile List    functions.htmlData Fields    globals.htmlGlobals    stream.c File Reference
Functions
types_8h.html#a23wmfStream  * stream_8c.html#a0wmf_ztream_create  ( types_8h.html#a22wmfAPI  *API, gzFile out) types_8h.html#a23wmfStream  * stream_8c.html#a1wmf_stream_create  ( types_8h.html#a22wmfAPI  *API, FILE *out) void stream_8c.html#a2wmf_ztream_destroy  ( types_8h.html#a22wmfAPI  *API, types_8h.html#a23wmfStream  *stream, char **buffer, unsigned long *length) void stream_8c.html#a3wmf_stream_destroy  ( types_8h.html#a22wmfAPI  *API, types_8h.html#a23wmfStream  *stream, char **buffer, unsigned long *length) int stream_8c.html#a4wmf_stream_printf  ( types_8h.html#a22wmfAPI  *API, types_8h.html#a23wmfStream  *stream, char *format,...) int stream_8c.html#a5wmf_stream_zputs  (char *str, void *context) int stream_8c.html#a6wmf_stream_sputs  (char *str, void *context) int stream_8c.html#a7wmf_stream_rezet  (void *context) int stream_8c.html#a8wmf_stream_reset  (void *context) Function Documentation
  
    
      
        
          
 types_8h.html#a23wmfStream * wmf_stream_create           
(           
types_8h.html#a22wmfAPI  *           
  API,         
        
          
          
          
FILE *           
  out         
        
          
          
)           
        
      
    
  
  
    
       
    
    
Open an uncompressed character output stream.
Parameters: API the API handle 
out descriptor for a file stream; or zero to write to memory
stream_8c.html#a1wmf_stream_create()  creates a types_8h.html#a23wmfStream  (a character-based output stream) for output to a file or, if out is zero, to memory.
Returns: Returns a 
types_8h.html#a23wmfStream  pointer, or zero on failure. Possible library error states of wmf_E_InsMem or wmf_E_BadFile.       
  
    
      
        
          
 void wmf_stream_destroy           
(           
types_8h.html#a22wmfAPI  *           
  API,         
        
          
          
          
types_8h.html#a23wmfStream  *           
  stream,         
        
          
          
          
char **           
  buffer,         
        
          
          
          
unsigned long *           
  length         
        
          
          
)           
        
      
    
  
  
    
       
    
    
Close an uncompressed character output stream.
Parameters: API the API handle 
stream stream handle 
buffer for memory return 
length for length return
In the case of write-to-memory, on return *buffer is an array of length length.       
  
    
      
        
          
 int wmf_stream_printf           
(           
types_8h.html#a22wmfAPI  *           
  API,         
        
          
          
          
types_8h.html#a23wmfStream  *           
  stream,         
        
          
          
          
char *           
  format,         
        
          
          
          
...           
         
        
          
          
)           
        
      
    
  
  
    
       
    
    
Formatted print to character output stream.
Parameters: API the API handle 
stream stream handle 
format print format
With syntax similar to printf(), stream_8c.html#a4wmf_stream_printf()  prints a formatted message to a types_8h.html#a23wmfStream  character stream.
Returns: Returns the number of characters written, or zero on failure. Possible library error state of 
wmf_E_InsMem.       
  
    
      
        
          
 int wmf_stream_reset           
(           
void *           
                     
)           
        
      
    
  
  
    
       
    
    
uncompressed char output (wmf_stream_create): rewind()     
  
  
    
      
        
          
 int wmf_stream_rezet           
(           
void *           
                     
)           
        
      
    
  
  
    
       
    
    
compressed char output (wmf_ztream_create): rewind()     
  
  
    
      
        
          
 int wmf_stream_sputs           
(           
char *           
 ,         
        
          
          
          
void *           
         
        
          
          
)           
        
      
    
  
  
    
       
    
    
uncompressed char output (wmf_stream_create): fputs()     
  
  
    
      
        
          
 int wmf_stream_zputs           
(           
char *           
 ,         
        
          
          
          
void *           
         
        
          
          
)           
        
      
    
  
  
    
       
    
    
compressed char output (wmf_ztream_create): fputs()     
  
  
    
      
        
          
 types_8h.html#a23wmfStream * wmf_ztream_create           
(           
types_8h.html#a22wmfAPI  *           
  API,         
        
          
          
          
gzFile           
  out         
        
          
          
)           
        
      
    
  
  
    
       
    
    
Open a compressed character output stream.
Parameters: API the API handle 
out descriptor for a zlib compressed file stream
stream_8c.html#a0wmf_ztream_create()  creates a types_8h.html#a23wmfStream  (a character-based output stream) for output to a file opened via zlib. (Writing compressed data to memory is not currently supported.)
Returns: Returns a 
types_8h.html#a23wmfStream  pointer, or zero on failure. Possible library error state of wmf_E_InsMem.       
  
    
      
        
          
 void wmf_ztream_destroy           
(           
types_8h.html#a22wmfAPI  *           
  API,         
        
          
          
          
types_8h.html#a23wmfStream  *           
  stream,         
        
          
          
          
char **           
  buffer,         
        
          
          
          
unsigned long *           
  length         
        
          
          
)           
        
      
    
  
  
    
       
    
    
Close a compressed character output stream.
Parameters: API the API handle 
stream stream handle 
buffer (unused) 
length (unused) 
      
Generated on Tue Dec 10 19:53:51 2002 for libwmf by
http://www.doxygen.org/index.htmldoxygen 1.2.18 