prompt.c revision 2
2N/A/* -*- mode: c; c-basic-offset: 4; indent-tabs-mode: nil -*- */
2N/A/*
2N/A * prompt.c: Routines for retrieving and setting a prompt.
2N/A *
2N/A * util/ss/prompt.c
2N/A *
2N/A * Copyright 1987, 1988 by MIT Student Information Processing Board
2N/A *
2N/A * For copyright information, see copyright.h.
2N/A */
2N/A
2N/A#include "copyright.h"
2N/A#include <stdio.h>
2N/A#include "ss_internal.h"
2N/A
2N/Avoid
2N/Ass_set_prompt(sci_idx, new_prompt)
2N/A int sci_idx;
2N/A char *new_prompt;
2N/A{
2N/A ss_info(sci_idx)->prompt = new_prompt;
2N/A}
2N/A
2N/Achar *
2N/Ass_get_prompt(sci_idx)
2N/A int sci_idx;
2N/A{
2N/A return(ss_info(sci_idx)->prompt);
2N/A}