1 |
– |
/* Copyright (c) 1996 Regents of the University of California */ |
2 |
– |
|
1 |
|
#ifndef lint |
2 |
< |
static char SCCSid[] = "$SunId$ LBL"; |
2 |
> |
static const char RCSid[] = "$Id$"; |
3 |
|
#endif |
6 |
– |
|
4 |
|
/* |
5 |
|
* Routines for recognizing and moving about words in strings. |
6 |
+ |
* |
7 |
+ |
* External symbols declared in standard.h |
8 |
|
*/ |
9 |
|
|
10 |
+ |
#include "copyright.h" |
11 |
+ |
|
12 |
|
#include <ctype.h> |
13 |
+ |
#include <string.h> |
14 |
|
|
15 |
< |
#ifdef BSD |
14 |
< |
#define strchr index |
15 |
< |
#endif |
15 |
> |
#include "rtio.h" |
16 |
|
|
17 |
– |
#define NULL 0 |
18 |
– |
|
19 |
– |
extern char *strchr(); |
20 |
– |
|
21 |
– |
|
17 |
|
char * |
18 |
|
atos(rs, nb, s) /* get word from string, returning rs */ |
19 |
|
char *rs; |
130 |
|
} |
131 |
|
|
132 |
|
|
133 |
+ |
int |
134 |
|
isint(s) /* check integer format */ |
135 |
|
char *s; |
136 |
|
{ |
141 |
|
} |
142 |
|
|
143 |
|
|
144 |
+ |
int |
145 |
|
isintd(s, ds) /* check integer format with delimiter set */ |
146 |
|
char *s, *ds; |
147 |
|
{ |
152 |
|
} |
153 |
|
|
154 |
|
|
155 |
+ |
int |
156 |
|
isflt(s) /* check float format */ |
157 |
|
char *s; |
158 |
|
{ |
163 |
|
} |
164 |
|
|
165 |
|
|
166 |
+ |
int |
167 |
|
isfltd(s, ds) /* check integer format with delimiter set */ |
168 |
|
char *s, *ds; |
169 |
|
{ |