home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 10 Tools
/
10-Tools.zip
/
sa104os2.zip
/
SATHR104.ZIP
/
SATHER
/
SYSTEM
/
IN.C
< prev
next >
Wrap
C/C++ Source or Header
|
1994-10-25
|
409b
|
13 lines
/* C_in.c
C code for Sather 1.0 library external class C_IN */
#include <stdio.h>
/* Retrieve a single character from stdin as an int, negative for end
of file */
int c_in_getchar(){return getchar();}
/* Read at most `sz-1' characters from stdin and place them in `s' at
offset `st', followed by '\0'. If EOF is the first char, do nothing. */
void c_in_get_str(char *s, int st, int sz){fgets(s,sz,stdin);}