fork download
  1.  
  2. #include <stdio.h> /*for printf*/
  3. #include <ctype.h> /*for islower,isupper...*/
  4. #include <string.h> /*for strlen*/
  5. #include <stdlib.h> /*for atoi*/
  6.  
  7. #define NUM_OF_ACSII 128
  8.  
  9. #define IS_LITTLE_ENDIAN() ((int)1 & (char)1) ? 1 : 0
  10.  
  11.  
  12. int main(void)
  13. {
  14. /* int val = 1021;*/
  15. /* char str[1000] = {0};*/
  16.  
  17. /* Itoa(val,str,32);*/
  18. /* printf("%s\n",str);*/
  19.  
  20. /* PrintCharsOnlyInTheFirstTwo("abacrombi","abc","golan");*/
  21. printf("%d\n",IS_LITTLE_ENDIAN());
  22. return 0;
  23. }
  24.  
  25.  
Success #stdin #stdout 0.01s 5504KB
stdin
123
stdout
1