source: buchla-68k/libcio/fstubs.c@ 7258c6a

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

Use standard integer types.

  • Property mode set to 100644
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
42int16_t readbuf(int16_t dev, int8_t *buf)
43{
44 xtrap15();
45 return(1);
46}
Note: See TracBrowser for help on using the repository browser.