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 |
16 |
|
#define strchr index |
17 |
|
#endif |
18 |
|
|
17 |
– |
#define NULL 0 |
19 |
|
|
19 |
– |
extern char *strchr(); |
20 |
– |
|
21 |
– |
|
20 |
|
char * |
21 |
|
atos(rs, nb, s) /* get word from string, returning rs */ |
22 |
|
char *rs; |
133 |
|
} |
134 |
|
|
135 |
|
|
136 |
+ |
int |
137 |
|
isint(s) /* check integer format */ |
138 |
|
char *s; |
139 |
|
{ |
144 |
|
} |
145 |
|
|
146 |
|
|
147 |
+ |
int |
148 |
|
isintd(s, ds) /* check integer format with delimiter set */ |
149 |
|
char *s, *ds; |
150 |
|
{ |
155 |
|
} |
156 |
|
|
157 |
|
|
158 |
+ |
int |
159 |
|
isflt(s) /* check float format */ |
160 |
|
char *s; |
161 |
|
{ |
166 |
|
} |
167 |
|
|
168 |
|
|
169 |
+ |
int |
170 |
|
isfltd(s, ds) /* check integer format with delimiter set */ |
171 |
|
char *s, *ds; |
172 |
|
{ |