Last change
on this file since ca867c1 was 7ecfb7b, checked in by Thomas Lopatic <thomas@…>, 7 years ago |
Unused variables and parameters.
|
-
Property mode
set to
100644
|
File size:
1.1 KB
|
Rev | Line | |
---|
[f40a309] | 1 | /*
|
---|
| 2 | =============================================================================
|
---|
| 3 | fstubs.c -- stubs for testing with
|
---|
| 4 | Version 13 -- 1987-11-13 -- D.N. Lynx Crowe
|
---|
| 5 | =============================================================================
|
---|
| 6 | */
|
---|
| 7 |
|
---|
[b28a12e] | 8 | #include "ram.h"
|
---|
[e225e77] | 9 |
|
---|
[f40a309] | 10 | /*
|
---|
| 11 | =============================================================================
|
---|
| 12 | readbuf() -- Reads an edited string from 'dev' into 'buf'
|
---|
| 13 | in {MS|GEM}DOS buffer format.
|
---|
| 14 |
|
---|
| 15 | Buffer format:
|
---|
| 16 |
|
---|
| 17 | buf[0] = buffer length, buf[1] = number of bytes read,
|
---|
| 18 | buf[2]..buf[buf[0]-1 = data area
|
---|
| 19 |
|
---|
| 20 | Editing characters:
|
---|
| 21 |
|
---|
| 22 | CR, LF End the line
|
---|
| 23 | BS, DEL Erase last character
|
---|
| 24 | ^U,^X Cancel (erase) entire line
|
---|
| 25 | ^R Retype line
|
---|
| 26 | ^C Terminate the process
|
---|
| 27 | ^Z End of file / end of line
|
---|
| 28 |
|
---|
| 29 | Returns:
|
---|
| 30 | Value stddef Meaning
|
---|
| 31 | ----- ------- --------------------------------------------
|
---|
| 32 | 1 Terminate process (^C entered)
|
---|
| 33 | 0 SUCCESS Line available in buffer (CR or LF entered)
|
---|
| 34 | -1 EOF End of file (^Z entered)
|
---|
| 35 | =============================================================================
|
---|
| 36 | */
|
---|
| 37 |
|
---|
[7258c6a] | 38 | int16_t readbuf(int16_t dev, int8_t *buf)
|
---|
[f40a309] | 39 | {
|
---|
[7ecfb7b] | 40 | (void)dev;
|
---|
| 41 | (void)buf;
|
---|
| 42 |
|
---|
[f40a309] | 43 | xtrap15();
|
---|
| 44 | return(1);
|
---|
| 45 | }
|
---|
[6262b5c] | 46 |
|
---|
Note:
See
TracBrowser
for help on using the repository browser.