Main Page   Modules   Alphabetical List   Compound List   File List   Compound Members   File Members  

psstream.c File Reference

#include <stdio.h>
#include <stdlib.h>
#include <stdarg.h>
#include "ps/ps.h"

Go to the source code of this file.

Functions

PSStreamFuncspsStreamFuncsAlloc (void)
 Allocates and initializes a PSStreamFuncs structure. More...

void psStreamFuncsFree (PSStreamFuncs *funcs)
 Frees a PSStreamFuncs structure. More...

PSStreampsStreamAlloc (void* stream, PSStreamFuncs* funcs)
 Allocates and initializes a PSStream structure. More...

void psStreamFree (PSStream *str)
 Frees a PSStream structure. More...

size_t psRead (void* ptr, size_t size, size_t nmemb, PSStream* str)
 Read size * nmemb bytes from the stream referenced by str into the buffer ptr. More...

size_t psWrite (const void* ptr, size_t size, size_t nmemb, PSStream* str)
 Writes size * nmemb bytes to the stream referenced by str from the buffer ptr. More...

long psTell (PSStream* str)
 Obtains the current postion in the stream referenced by str. More...

int psSeek (PSStream* str, long offset, int whence)
 Sets the current position for the stream referenced by str. More...

int psGetC (PSStream* str)
 Reads the next character from the stream referenced by str. More...

int psUngetC (int c, PSStream* str)
 Pushes c back to the stream referenced by str. More...

int psPutC (int c, PSStream* str)
 Puts c to the stream referenced by str. More...

char* psGetS (char* s, int size, PSStream* str)
 Reads a line from the stream referenced by str. More...

int psPutS (char* s, PSStream* str)
 Writes the string s to the stream referenced by str. More...

int psEof (PSStream* str)
 Tests for the end of file condition of the stream referenced by str. More...

int psPrintf (PSStream* str, char *format, ...)
 Output formatted data to the stream referenced by str. More...


Variables

PSStreamFuncs psStandardStreamFuncs
 Standard I/O PSStream. More...


Detailed Description


Generated at Mon Dec 11 22:46:29 2000 for Postscript Utility Library by doxygen1.2.3 written by Dimitri van Heesch, © 1997-2000