## isalnum

    Locale Convenience Function

- Summary
- Data Type and Member Function Indexes
- Synopsis
- Description
- Example
- See Also

### Summary

Determines if a character is alphabetic or numeric.

### Data Type and Member Function Indexes
(exclusive of constructors and destructors)

None

### 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

Copyright (c) 1998, Rogue Wave Software, Inc.
Send mail to report errors or comment on the documentation.
OEM Release, June 1998