Audiovox P965 Arkusz Danych Strona 79

  • Pobierz
  • Dodaj do moich podręczników
  • Drukuj
  • Strona
    / 280
  • Spis treści
  • BOOKMARKI
  • Oceniono. / 5. Na podstawie oceny klientów
Przeglądanie stron 78
API in C using winsock
76
DEBUG ? printf("%d\n", iAccumulated) : 0;
return (char)iAccumulated;
}
/********************************************************************
* Test whether or not this system is little endian at RUNTIME
* Courtesy: http://download.osgeo.org/grass/grass6_progman/endian_8c_source.html
********************************************************************/
int isLittleEndian(void)
{
union
{
int testWord;
char testByte[sizeof(int)];
} endianTest;
endianTest.testWord = 1;
if (endianTest.testByte[0] == 1)
return 1; /* true: little endian */
return 0; /* false: big endian */
}
References
[1] http:/ / wiki. mikrotik. com/ wiki/ API_in_C
Przeglądanie stron 78
1 2 ... 74 75 76 77 78 79 80 81 82 83 84 ... 279 280

Komentarze do niniejszej Instrukcji

Brak uwag