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