1
1
/* global.h: extend the standard programming environment a little. This
2
is included from config.h, which everyone includes.
4
Copyright (C) 1992 Free Software Foundation, Inc.
6
This program is free software; you can redistribute it and/or modify
7
it under the terms of the GNU General Public License as published by
8
the Free Software Foundation; either version 2, or (at your option)
11
This program is distributed in the hope that it will be useful,
12
but WITHOUT ANY WARRANTY; without even the implied warranty of
13
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14
GNU General Public License for more details.
16
You should have received a copy of the GNU General Public License
17
along with this program; if not, write to the Free Software
18
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */
2
* is included from config.h, which everyone includes.
4
* Copyright (C) 1992 Free Software Foundation, Inc.
6
* This program is free software; you can redistribute it and/or modify
7
* it under the terms of the GNU General Public License as published by
8
* the Free Software Foundation; either version 2, or (at your option)
11
* This program is distributed in the hope that it will be useful,
12
* but WITHOUT ANY WARRANTY; without even the implied warranty of
13
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14
* GNU General Public License for more details.
16
* You should have received a copy of the GNU General Public License
17
* along with this program; if not, write to the Free Software
18
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
195
196
/* If the string S parses as a character code, this sets *VALID to
196
197
`true' and returns the number. If it doesn't, it sets *VALID to
197
198
`false' and the return value is garbage.
199
200
We allow any of the following possibilies: a single character, as in
200
201
`a' or `0'; a decimal number, as in `21'; an octal number, as in `03'
201
202
or `0177'; a hexadecimal number, as in `0x3' or `0xff'. */