1*6a54128fSAndroid Build Coastguard Worker /* 2*6a54128fSAndroid Build Coastguard Worker * prompt.c: Routines for retrieving and setting a prompt. 3*6a54128fSAndroid Build Coastguard Worker * 4*6a54128fSAndroid Build Coastguard Worker * $Header$ 5*6a54128fSAndroid Build Coastguard Worker * $Locker$ 6*6a54128fSAndroid Build Coastguard Worker * 7*6a54128fSAndroid Build Coastguard Worker * Copyright 1987, 1988 by MIT Student Information Processing Board 8*6a54128fSAndroid Build Coastguard Worker * 9*6a54128fSAndroid Build Coastguard Worker * Permission to use, copy, modify, and distribute this software and 10*6a54128fSAndroid Build Coastguard Worker * its documentation for any purpose is hereby granted, provided that 11*6a54128fSAndroid Build Coastguard Worker * the names of M.I.T. and the M.I.T. S.I.P.B. not be used in 12*6a54128fSAndroid Build Coastguard Worker * advertising or publicity pertaining to distribution of the software 13*6a54128fSAndroid Build Coastguard Worker * without specific, written prior permission. M.I.T. and the 14*6a54128fSAndroid Build Coastguard Worker * M.I.T. S.I.P.B. make no representations about the suitability of 15*6a54128fSAndroid Build Coastguard Worker * this software for any purpose. It is provided "as is" without 16*6a54128fSAndroid Build Coastguard Worker * express or implied warranty. 17*6a54128fSAndroid Build Coastguard Worker */ 18*6a54128fSAndroid Build Coastguard Worker 19*6a54128fSAndroid Build Coastguard Worker #include "config.h" 20*6a54128fSAndroid Build Coastguard Worker #include <stdio.h> 21*6a54128fSAndroid Build Coastguard Worker #include "ss_internal.h" 22*6a54128fSAndroid Build Coastguard Worker ss_set_prompt(int sci_idx,char * new_prompt)23*6a54128fSAndroid Build Coastguard Workervoid ss_set_prompt(int sci_idx, char *new_prompt) 24*6a54128fSAndroid Build Coastguard Worker { 25*6a54128fSAndroid Build Coastguard Worker ss_info(sci_idx)->prompt = new_prompt; 26*6a54128fSAndroid Build Coastguard Worker } 27*6a54128fSAndroid Build Coastguard Worker ss_get_prompt(int sci_idx)28*6a54128fSAndroid Build Coastguard Workerchar *ss_get_prompt(int sci_idx) 29*6a54128fSAndroid Build Coastguard Worker { 30*6a54128fSAndroid Build Coastguard Worker return(ss_info(sci_idx)->prompt); 31*6a54128fSAndroid Build Coastguard Worker } 32