home *** CD-ROM | disk | FTP | other *** search
/ GEMini Atari / GEMini_Atari_CD-ROM_Walnut_Creek_December_1993.iso / zip / program / gempp15b.zoo / src / gemsb.cc < prev    next >
C/C++ Source or Header  |  1993-04-25  |  755b  |  26 lines

  1. /////////////////////////////////////////////////////////////////////////////
  2. //
  3. //  This file is Copyright 1992,1993 by Warwick W. Allison.
  4. //  This file is part of the gem++ library.
  5. //  You are free to copy and modify these sources, provided you acknowledge
  6. //  the origin by retaining this notice, and adhere to the conditions
  7. //  described in the file COPYING.LIB.
  8. //
  9. /////////////////////////////////////////////////////////////////////////////
  10. #include "gemsb.h"
  11. #include <aesbind.h>
  12.  
  13. GEMstreambuf::GEMstreambuf(int ApplID) : ID(ApplID)
  14. { }
  15.  
  16. size_t GEMstreambuf::sputn(const char* s, size_t n)
  17. {
  18.     return appl_write(ID,n,(char*)s); // SAFE - appl_write doesn't hack s
  19. }
  20.  
  21. size_t GEMstreambuf::sgetn(char* s, size_t n)
  22. {
  23.     return appl_read(ID,n,s);
  24. }
  25.  
  26.