source: buchla-68k/libcio/fstubs.c@ 6262b5c

Last change on this file since 6262b5c was 6262b5c, checked in by Thomas Lopatic <thomas@…>, 7 years ago

Added include files for global functions and variables.

  • Property mode set to 100644
File size: 1.1 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 "all.h"
9
10extern void xtrap15(void);
11
12/*
13 =============================================================================
14 readbuf() -- Reads an edited string from 'dev' into 'buf'
15 in {MS|GEM}DOS buffer format.
16
17 Buffer format:
18
19 buf[0] = buffer length, buf[1] = number of bytes read,
20 buf[2]..buf[buf[0]-1 = data area
21
22 Editing characters:
23
24 CR, LF End the line
25 BS, DEL Erase last character
26 ^U,^X Cancel (erase) entire line
27 ^R Retype line
28 ^C Terminate the process
29 ^Z End of file / end of line
30
31 Returns:
32 Value stddef Meaning
33 ----- ------- --------------------------------------------
34 1 Terminate process (^C entered)
35 0 SUCCESS Line available in buffer (CR or LF entered)
36 -1 EOF End of file (^Z entered)
37 =============================================================================
38*/
39
40int16_t readbuf(int16_t dev, int8_t *buf)
41{
42 xtrap15();
43 return(1);
44}
45
Note: See TracBrowser for help on using the repository browser.