epoc32/include/libc/ctype.h
author William Roberts <williamr@symbian.org>
Wed, 31 Mar 2010 12:33:34 +0100
branchSymbian3
changeset 4 837f303aceeb
parent 2 2fe1408b6811
permissions -rw-r--r--
Current Symbian^3 public API header files (from PDK 3.0.h)
This is the epoc32/include tree with the "platform" subtrees removed, and
all but a selected few mbg and rsg files removed.
     1 /*
     2 * Copyright (c) 1997-2009 Nokia Corporation and/or its subsidiary(-ies).
     3 * All rights reserved.
     4 * This component and the accompanying materials are made available
     5 * under the terms of "Eclipse Public License v1.0"
     6 * which accompanies this distribution, and is available
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
     8 *
     9 * Initial Contributors:
    10 * Nokia Corporation - initial contribution.
    11 *
    12 * Contributors:
    13 *
    14 * Description:
    15 *
    16 */
    17 
    18 
    19 
    20 /**
    21  @file
    22  @publishedAll
    23  @released
    24 */
    25 
    26 #ifndef _CTYPE_H_
    27 #ifdef __cplusplus
    28 extern "C" {
    29 #endif
    30 #define _CTYPE_H_
    31 
    32 #include "_ansi.h"
    33 
    34 IMPORT_C int isalnum(int c);
    35 IMPORT_C int isalpha(int c);
    36 IMPORT_C int iscntrl(int c);
    37 IMPORT_C int isdigit(int c);
    38 IMPORT_C int isgraph(int c);
    39 IMPORT_C int islower(int c);
    40 IMPORT_C int isprint(int c);
    41 IMPORT_C int ispunct(int c);
    42 IMPORT_C int isspace(int c);
    43 IMPORT_C int isupper(int c);
    44 IMPORT_C int isxdigit(int c);
    45 IMPORT_C int tolower(int c);
    46 IMPORT_C int toupper(int c);
    47 
    48 /**
    49 not strict ansi, but popular nevertheless 
    50 */
    51 #define isascii(c)	((unsigned)(c)<=0177)
    52 #define toascii(c)	((c)&0177)
    53 
    54 #ifndef _STRICT_ANSI
    55 #define _tolower(c)	tolower(c)
    56 #define _toupper(c)	toupper(c)
    57 #endif
    58 
    59 #ifdef __cplusplus
    60 }
    61 #endif
    62 #endif /* _CTYPE_H_ */