Deleted Added
full compact
isctype.c (1574) isctype.c (7656)
1/*
2 * Copyright (c) 1989, 1993
3 * The Regents of the University of California. All rights reserved.
4 * (c) UNIX System Laboratories, Inc.
5 * All or some portions of this file are derived from material licensed
6 * to the University of California by American Telephone and Telegraph
7 * Co. or Unix System Laboratories, Inc. and are reproduced herein with
8 * the permission of UNIX System Laboratories, Inc.

--- 29 unchanged lines hidden (view full) ---

38 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
39 * SUCH DAMAGE.
40 */
41
42#if defined(LIBC_SCCS) && !defined(lint)
43static char sccsid[] = "@(#)isctype.c 8.3 (Berkeley) 2/24/94";
44#endif /* LIBC_SCCS and not lint */
45
1/*
2 * Copyright (c) 1989, 1993
3 * The Regents of the University of California. All rights reserved.
4 * (c) UNIX System Laboratories, Inc.
5 * All or some portions of this file are derived from material licensed
6 * to the University of California by American Telephone and Telegraph
7 * Co. or Unix System Laboratories, Inc. and are reproduced herein with
8 * the permission of UNIX System Laboratories, Inc.

--- 29 unchanged lines hidden (view full) ---

38 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
39 * SUCH DAMAGE.
40 */
41
42#if defined(LIBC_SCCS) && !defined(lint)
43static char sccsid[] = "@(#)isctype.c 8.3 (Berkeley) 2/24/94";
44#endif /* LIBC_SCCS and not lint */
45
46#define _ANSI_LIBRARY
47#include <ctype.h>
48
49#undef isalnum
50int
51isalnum(c)
52 int c;
53{
46#include <ctype.h>
47
48#undef isalnum
49int
50isalnum(c)
51 int c;
52{
54 return(__istype((c), (_A|_D)));
53 return (__istype((c), (_A|_D)));
55}
56
57#undef isalpha
58int
59isalpha(c)
60 int c;
61{
62 return (__istype((c), _A));
63}
64
65#undef isascii
66int
67isascii(c)
68 int c;
69{
54}
55
56#undef isalpha
57int
58isalpha(c)
59 int c;
60{
61 return (__istype((c), _A));
62}
63
64#undef isascii
65int
66isascii(c)
67 int c;
68{
70 return((c & ~0x7F) == 0);
69 return (((c) & ~0x7F) == 0);
71}
72
73#undef isblank
74int
75isblank(c)
76 int c;
77{
78 return (__istype((c), _B));

--- 71 unchanged lines hidden (view full) ---

150 return (__isctype((c), _X));
151}
152
153#undef toascii
154int
155toascii(c)
156 int c;
157{
70}
71
72#undef isblank
73int
74isblank(c)
75 int c;
76{
77 return (__istype((c), _B));

--- 71 unchanged lines hidden (view full) ---

149 return (__isctype((c), _X));
150}
151
152#undef toascii
153int
154toascii(c)
155 int c;
156{
158 return (c & 0177);
157 return ((c) & 0x7F);
159}
160
161#undef tolower
162int
163tolower(c)
164 int c;
165{
158}
159
160#undef tolower
161int
162tolower(c)
163 int c;
164{
166 return((c & _CRMASK) ? ___tolower(c) : _CurrentRuneLocale->maplower[c]);
165 return (__tolower(c));
167}
168
169#undef toupper
170int
171toupper(c)
172 int c;
173{
166}
167
168#undef toupper
169int
170toupper(c)
171 int c;
172{
174 return((c & _CRMASK) ? ___toupper(c) : _CurrentRuneLocale->mapupper[c]);
173 return (__toupper(c));
175}
174}