Jspice3
scedstub.c
Go to the documentation of this file.
1 /***************************************************************************
2 JSPICE3 adaptation of Spice3e2 - Copyright (c) Stephen R. Whiteley 1992
3 Copyright 1990 Regents of the University of California. All rights reserved.
4 Authors: 1992 Stephen R. Whiteley
5 ****************************************************************************/
6 
7 /* satisfy references to the sced library when sced is not included */
8 
9 #include <stdio.h>
10 #include "spice.h"
11 #include "cpdefs.h"
12 #define SHORT_SCEDIO
13 #include "scedio.h"
14 
15 #define False 0
16 #define True 1
17 
18 
19 /* ARGSUSED */
20 int
21 SCEDline(string)
22 
23 /* Called from output.c
24  */
25 char *string;
26 {
27  return (False);
28 }
29 
30 
31 void
33 
34 {
35  return;
36 }
37 
38 
39 /* ARGSUSED */
40 char *
42 
43 char *s;
44 int n;
45 FILE *fp;
46 char *prompt;
47 {
48  char *c;
49 
50  if (prompt != NULL) {
51  (void)fprintf(cp_out,prompt);
52  (void)fflush(cp_out);
53  }
54  c = fgets(s,n,fp);
55  if (c == NULL) {
56  clearerr(fp);
57  }
58  return (c);
59 }
60 
61 
62 enum Active
64 
65 {
66  return (SCED_inactive);
67 }
68 
69 
70 void
72 
73 char *str;
74 {
75  fprintf(cp_out, str);
76 }
Definition: cddefs.h:119
static void prompt()
Definition: lexical.c:350
void SCEDfflush()
Definition: scedstub.c:32
#define NULL
Definition: spdefs.h:121
FILE * cp_out
Definition: help.c:101
char * SCEDfgets(char *s, int n, FILE *fp, char *prompt)
Definition: scedstub.c:41
static double c
Definition: vectors.c:16
Active
Definition: scedio.h:12
int SCEDline(char *string)
Definition: scedstub.c:21
#define False
Definition: scedstub.c:15
enum Active SCEDactive()
Definition: scedstub.c:63
void clearerr(FILE *fp)
Definition: libfuncs.c:116
void ShowPrompt(char *str)
Definition: scedstub.c:71