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