Changeset 8973acd in buchla-68k for libcio/fgets.c
- Timestamp:
 - 07/15/2017 03:12:10 PM (8 years ago)
 - Branches:
 - master
 - Children:
 - ea232f9
 - Parents:
 - 7d0d347
 - File:
 - 
      
- 1 edited
 
- 
          
  libcio/fgets.c (modified) (2 diffs)
 
 
Legend:
- Unmodified
 - Added
 - Removed
 
- 
      
libcio/fgets.c
r7d0d347 r8973acd 40 40 41 41 while ((i = getchar()) NE EOF AND i NE '\n') 42 *cp++ = i;42 *cp++ = (int8_t)i; 43 43 44 44 *cp = 0; /* terminate the line */ … … 55 55 register int8_t *cp; 56 56 57 c = 0; 57 58 cp = s; 58 59 59 60 while (--n > 0 AND (c = agetc(fp)) NE EOF) { 60 61 61 *cp++ = c;62 *cp++ = (int8_t)c; 62 63 63 64 if (c EQ '\n')  
  Note:
 See   TracChangeset
 for help on using the changeset viewer.
  ![(please configure the [header_logo] section in trac.ini)](http://bob.lopatic.de/chrome/site/logo.png)