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