home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 7 / 07.iso / c / c082_144 / 8.ddi / IOSTRSR1.ZIP / STBDBP.CPP < prev    next >
Encoding:
C/C++ Source or Header  |  1992-06-10  |  989 b   |  32 lines

  1. /*-----------------------------------------------------------------------*
  2.  * filename - dbp.cpp
  3.  * Debugging output for streambuf
  4.  *-----------------------------------------------------------------------*/
  5.  
  6. /*
  7.  *      C/C++ Run Time Library - Version 5.0
  8.  *
  9.  *      Copyright (c) 1990, 1992 by Borland International
  10.  *      All Rights Reserved.
  11.  *
  12.  */
  13.  
  14. #include "filesys.h"
  15. #include <iostream.h>
  16. #include <stdio.h>      /* for sprintf */
  17. #include <string.h>
  18.  
  19. // debugging output for streambuf
  20. void streambuf::dbp()
  21. {
  22.     char s[80];
  23.     sprintf(s, "alloc_ = %d, unbuf_ = %d\n", alloc_, unbuf_);
  24.     write(F_stdout, s, strlen(s));
  25.     sprintf(s, "base_ = %p, ebuf_ = %p\n", base_, ebuf_);
  26.     write(F_stdout, s, strlen(s));
  27.     sprintf(s, "pbase_ = %p, pptr_ = %p, epptr_ = %p\n", pbase_, pptr_, epptr_);
  28.     write(F_stdout, s, strlen(s));
  29.     sprintf(s, "gptr_ = %p, egptr_ = %p, eback_ = %p\n", gptr_, egptr_, eback_);
  30.     write(F_stdout, s, strlen(s));
  31. }
  32.