/*[]------------------------------------------------------------[]*/
/*|                                                              |*/
/*|     stbuflow.cpp                                             |*/
/*|                                                              |*/
/*|     Class streambuf                                          |*/
/*|          int streambuf::underflow()                          |*/
/*|                                                              |*/
/*[]------------------------------------------------------------[]*/

/*
 *      C/C++ Run Time Library - Version 6.5
 *
 *      Copyright (c) 1990, 1994 by Borland International
 *      All Rights Reserved.
 *
 */

#include <ioconfig.h>
#include <iostream.h>

// streambuf can't do anything about underflow -- no place to get chars

int streambuf::underflow()
{
    if( egptr_ > gptr_ )
        return (unsigned char) *gptr_;

    gptr_ = egptr_;
    return EOF;
}


