Changeset 8973acd in buchla-68k for libcio/conin.c
- Timestamp:
- 07/15/2017 03:12:10 PM (7 years ago)
- Branches:
- master
- Children:
- ea232f9
- Parents:
- 7d0d347
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
libcio/conin.c
r7d0d347 r8973acd 8 8 #include "ram.h" 9 9 10 int8_t _ConBuf[258]; /* console input buffer */10 uint8_t _ConBuf[258]; /* console input buffer */ 11 11 int16_t _CBused; 12 12 13 int16_t _conin(io_arg arg, int8_t*buff, int16_t len)13 int16_t _conin(io_arg arg, void *buff, int16_t len) 14 14 { 15 15 int16_t nbp; … … 23 23 _ConBuf[1] = _ConBuf[2] = 0; 24 24 25 readbuf(CON_DEV, _ConBuf);25 readbuf(CON_DEV, (int8_t *)_ConBuf); 26 26 writeln(CON_DEV, "\r\n"); 27 27 … … 43 43 memcpy(buff, (_ConBuf + _CBused), l); 44 44 _CBused += l; 45 _ConBuf[1] -= l;45 _ConBuf[1] = (uint8_t)(_ConBuf[1] - l); 46 46 return (l); 47 47 }
Note:
See TracChangeset
for help on using the changeset viewer.