Back to index

glibc  2.9
Defines | Functions
ctype.h File Reference
#include "../locale/localeinfo.h"
#include <bits/libc-tsd.h>
#include <ctype/ctype.h>

Go to the source code of this file.

Defines

#define CTYPE_EXTERN_INLINE   extern inline
#define isdigit(c)   ({ int __c = (c); __c >= '0' && __c <= '9'; })
#define isdigit_l(c, l)   ({ int __c = (c); __c >= '0' && __c <= '9'; })
#define __isdigit_l(c, l)   ({ int __c = (c); __c >= '0' && __c <= '9'; })

Functions

int __isctype (int __c, int __mask)
 __libc_tsd_define (extern, const uint16_t *, CTYPE_B) __libc_tsd_define(extern
const int32_t CTYPE_TOUPPER __libc_tsd_define (extern, const int32_t *, CTYPE_TOLOWER) CTYPE_EXTERN_INLINE const uint16_t **__attribute__((const )) __ctype_b_loc(void)
CTYPE_EXTERN_INLINE const
int32_t ** 
__attribute__ ((const)) __ctype_toupper_loc(void)

Define Documentation

#define __isdigit_l (   c,
  l 
)    ({ int __c = (c); __c >= '0' && __c <= '9'; })

Definition at line 64 of file ctype.h.

#define CTYPE_EXTERN_INLINE   extern inline

Definition at line 18 of file ctype.h.

#define isdigit (   c)    ({ int __c = (c); __c >= '0' && __c <= '9'; })

Definition at line 60 of file ctype.h.

#define isdigit_l (   c,
  l 
)    ({ int __c = (c); __c >= '0' && __c <= '9'; })

Definition at line 62 of file ctype.h.


Function Documentation

Definition at line 34 of file ctype.h.

{
  const int32_t **tablep = __libc_tsd_address (const int32_t *, CTYPE_TOUPPER);
  if (__builtin_expect (*tablep == NULL, 0))
    *tablep = ((int32_t *) _NL_CURRENT (LC_CTYPE, _NL_CTYPE_TOUPPER) + 128);
  return tablep;
}
int __isctype ( int  __c,
int  __mask 
)

Definition at line 24 of file isctype.c.

{
  return (((uint16_t *) _NL_CURRENT (LC_CTYPE, _NL_CTYPE_CLASS) + 128)
         [(int) (ch)] & mask);
}
__libc_tsd_define ( extern  ,
const uint16_t ,
CTYPE_B   
)
const int32_t CTYPE_TOUPPER __libc_tsd_define ( extern  ,
const int32_t ,
CTYPE_TOLOWER   
) const

Definition at line 23 of file ctype.h.

{
  const uint16_t **tablep = __libc_tsd_address (const uint16_t *, CTYPE_B);
  if (__builtin_expect (*tablep == NULL, 0))
    *tablep = (const uint16_t *) _NL_CURRENT (LC_CTYPE, _NL_CTYPE_CLASS) + 128;
  return tablep;
}