is_char_signed.cpp
Go to the documentation of this file.
00001 
00011 /*****************************************************************************
00012 ** Includes
00013 *****************************************************************************/
00014 
00015 #include <iostream>
00016 #include <climits>
00017 
00018 /*****************************************************************************
00019 ** Main
00020 *****************************************************************************/
00021 
00022 int main(int argc, char **argv) {
00023 
00024         char c = -1;
00025         if ( (CHAR_MIN == SCHAR_MIN) && (CHAR_MAX == SCHAR_MAX) ) {
00026                 std::cout << "signed";
00027         } else {
00028                 std::cout << "unsigned";
00029         }
00030         return 0;
00031 }
00032 
00033 


ecl_build
Author(s): Daniel Stonier
autogenerated on Wed Aug 9 2017 02:37:18