United States    
COMPAQ STORE | PRODUCTS | SERVICES | SUPPORT
| CONTACT US | SEARCH
C++
isalnum (3C++std) - Tru64 UNIX
Standard C++ Library
Copyright 1996, Rogue Wave Software, Inc.

NAME

  isalnum - Determines if a character is alphabetic or numeric.

SYNOPSIS

  #include <locale>
  template <class charT>

  bool isalnum (charT c, const locale& loc) const;

DESCRIPTION

  The isalnum function returns true if the character passed as a parameter is
  either part of the alphabet specified by the locale parameter or a decimal
  digit, otherwise the function returns false.   The check is made using the
  ctype facet from the locale parameter.

EXAMPLE

  //
  // isalnum.cpp
  //

  #include <iostream>

  int main ()
  {
   using namespace std;

   locale loc;

   cout << isalnum('a',loc) << endl;
   cout << isalnum(',',loc) << endl;

   return 0;
  }

SEE ALSO

  other is_ functions, locale, ctype

STANDARDS CONFORMANCE

  ANSI X3J16/ISO WG21 Joint C++ Committee
  

1.800.AT.COMPAQ

privacy and legal statement