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 >
C/C++ Source or Header  |  1994-10-25  |  409b  |  13 lines

  1. /* C_in.c
  2. C code for Sather 1.0 library external class C_IN */
  3.  
  4. #include <stdio.h>
  5.  
  6. /* Retrieve a single character from stdin as an int, negative for end
  7. of file */
  8. int c_in_getchar(){return getchar();}
  9.  
  10. /* Read at most `sz-1' characters from stdin and place them in `s' at
  11. offset `st', followed by '\0'. If EOF is the first char, do nothing. */
  12. void c_in_get_str(char *s, int st, int sz){fgets(s,sz,stdin);}
  13.