dc166-patch/runtime/c166l/getc.c
2026-08-26 17:05:24 +03:00

8 lines
153 B
C

#include "dc166_stdio.h"
int getc(FILE *stream)
{
if (++stream->_cnt < 0)
return (int)(unsigned char)*stream->_ptr++;
return _filbuf(stream);
}