File:  [CSRG BSD Unix] / 43BSDReno / contrib / mh / sbr / peekc.c
Revision 1.1: download - view: text, annotated - select for diffs
Tue Apr 24 16:12:56 2018 UTC (8 years, 1 month ago) by root
CVS tags: MAIN, HEAD
Initial revision

/* peekc.c - peek at the next character in a stream */

#include "../h/mh.h"
#include <stdio.h>


int	peekc(ib)
register FILE *ib;
{
    register int    c;

    c = getc (ib);
    (void) ungetc (c, ib);

    return c;
}

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.