1 /* Extended regular expression matching and search library,
3 (Implements POSIX draft P10003.2/D11.2, except for
4 internationalization features.)
6 Copyright (C) 1993 Free Software Foundation, Inc.
8 This program is free software; you can redistribute it and/or modify
9 it under the terms of the GNU General Public License as published by
10 the Free Software Foundation; either version 2, or (at your option)
13 This program is distributed in the hope that it will be useful,
14 but WITHOUT ANY WARRANTY; without even the implied warranty of
15 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 GNU General Public License for more details.
18 You should have received a copy of the GNU General Public License
19 along with this program; if not, write to the Free Software
20 Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */
22 /* (this file was downloaded from
23 * https://raw.githubusercontent.com/ge-ne/bibtool/master/regex-0.12/test/printchar.c ,
24 * where no copyright header is included).
32 if (c
< 040 || c
>= 0177)
35 putchar (((c
>> 6) & 3) + '0');
36 putchar (((c
>> 3) & 7) + '0');
37 putchar ((c
& 7) + '0');