diff options
author | wollman <wollman@FreeBSD.org> | 1995-01-19 21:28:01 +0000 |
---|---|---|
committer | wollman <wollman@FreeBSD.org> | 1995-01-19 21:28:01 +0000 |
commit | 314433f416dadb6bcf20776dd2034bcf2e21dda5 (patch) | |
tree | 7445c8f9c56a2d4e84a3fe544af631e7aad24836 /lib/libss/prompt.c | |
parent | 0916b5648b6e21b684e10cfba42b81769ea51035 (diff) | |
download | FreeBSD-src-314433f416dadb6bcf20776dd2034bcf2e21dda5.zip FreeBSD-src-314433f416dadb6bcf20776dd2034bcf2e21dda5.tar.gz |
MIT SIPB `subsystem' library, needed for `kadmin' and some other MIT programs.
Diffstat (limited to 'lib/libss/prompt.c')
-rw-r--r-- | lib/libss/prompt.c | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/lib/libss/prompt.c b/lib/libss/prompt.c new file mode 100644 index 0000000..1e88ca381 --- /dev/null +++ b/lib/libss/prompt.c @@ -0,0 +1,31 @@ +/* + * prompt.c: Routines for retrieving and setting a prompt. + * + * Header: prompt.c,v 1.2 89/01/18 18:27:02 raeburn Exp + * $Locker: $ + * + * Copyright 1987, 1988 by MIT Student Information Processing Board + * + * For copyright information, see copyright.h. + */ + +#include "copyright.h" +#include <stdio.h> +#include "ss_internal.h" + +static const char rcsid[] = + "Header: prompt.c,v 1.2 89/01/18 18:27:02 raeburn Exp "; + +ss_set_prompt(sci_idx, new_prompt) + int sci_idx; + char *new_prompt; +{ + ss_info(sci_idx)->prompt = new_prompt; +} + +char * +ss_get_prompt(sci_idx) + int sci_idx; +{ + return(ss_info(sci_idx)->prompt); +} |