xref: /illumos-gate/usr/src/lib/krb5/ss/prompt.c (revision 20a7641f9918de8574b8b3b47dbe35c4bfc78df1)
1 /*
2  * Copyright (c) 2000 by Sun Microsystems, Inc.
3  * All rights reserved.
4  */
5 
6 /*
7  * prompt.c: Routines for retrieving and setting a prompt.
8  *
9  * util/ss/prompt.c
10  *
11  * Copyright 1987, 1988 by MIT Student Information Processing Board
12  *
13  * For copyright information, see copyright.h.
14  */
15 
16 #include "copyright.h"
17 #include <stdio.h>
18 #include "ss_internal.h"
19 
20 void
21 ss_set_prompt(sci_idx, new_prompt)
22      int sci_idx;
23      char *new_prompt;
24 {
25      ss_info(sci_idx)->prompt = new_prompt;
26 }
27 
28 char *
29 ss_get_prompt(sci_idx)
30      int sci_idx;
31 {
32      return(ss_info(sci_idx)->prompt);
33 }
34