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