home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 January / usenetsourcesnewsgroupsinfomagicjanuary1994.iso / sources / misc / volume2 / pbm / Part4 / pbm.h < prev    next >
Encoding:
C/C++ Source or Header  |  1991-08-07  |  490 b   |  20 lines

  1. /* pbm.h - header file for libpbm portable bitmap library
  2. */
  3.  
  4. typedef unsigned char bit;
  5.  
  6. /* Declarations of routines. */
  7.  
  8. int pbm_getint( );
  9.     /* i = pbm_getint( file ); */
  10. bit pbm_getbit( );
  11.     /* b = pbm_getbit( file ); */
  12. char pbm_getc( );
  13.     /* c = pbm_getc( file ); */
  14. bit **pbm_allocarray( );
  15.     /* bits = pbm_allocarray( cols, rows ); bits[row][col]; */
  16. bit **pbm_readpbm( );
  17.     /* bits = pbm_readpbm( file, &cols, &rows ); */
  18. pbm_writepbm( );
  19.     /* pbm_writepbm( file, bits, cols, rows ); */
  20.