1 /* Copyright (c) 1985 Ceriel J.H. Jacobs */
13 * char * getline(ln,disable_interrupt)
14 * long ln; The line number of the line to be returned
15 * int disable_interrupt; 1 if interrupts must be ignored, 0 otherwise
17 * Returns a pointer to the line with linenumber "ln".
19 * - there was an interrupt, and interrupts were not disabled, or
20 * - there is no line with linenumber "ln".
25 * char * alloc(size, isblock)
26 * unsigned size; The size in bytes
27 * int isblock; Flag indicating whether this is a file-text
30 * Return a pointer to a block of "size" bytes.
31 * Panics if no core can be found.
38 * Cleans up and initializes.
45 * Closes files. Useful for shell escapes.
52 * Get a character from input or command option line (only at start up).
53 * Some systems allow us to do some workahead while the user is
54 * thinking/reading. Use this to get parts of the input file in core.
61 * Finds the last line of the file, and returns its number.
62 * This command can be interrupted, in which case it returns 0.
69 * get offset of line "line" in the input