source: trunk/minix/commands/yap/getcomm.h@ 15

Last change on this file since 15 was 9, checked in by Mattia Monga, 14 years ago

Minix 3.1.2a

File size: 833 bytes
RevLine 
[9]1/* Copyright (c) 1985 Ceriel J.H. Jacobs */
2
3/* $Header: /cvsup/minix/src/commands/yap/getcomm.h,v 1.1.1.1 2005/04/21 14:55:39 beng Exp $ */
4
5# ifndef _GETCOMM_
6# define PUBLIC extern
7# else
8# define PUBLIC
9# endif
10
11int getcomm();
12/*
13 * int getcomm()
14 *
15 * Reads commands given by the user. The command is returned.
16 */
17
18VOID shellescape();
19/*
20 * void shellescape(command)
21 * char *command; The shell command to be executed
22 *
23 * Expands '%' and '!' in the command "command" to the current filename
24 * and the previous command respectively, and then executes "command".
25 */
26
27char * readline();
28/*
29 * char * readline(prompt)
30 * char *prompt; Prompt given to the user
31 *
32 * Gives a prompt "prompt" and reads a line to be typed in by the user.
33 * A pointer to this line is returned. Space for this line is static.
34 */
35
36# undef PUBLIC
Note: See TracBrowser for help on using the repository browser.