Audiovox P965 Datenblatt Seite 134

  • Herunterladen
  • Zu meinen Handbüchern hinzufügen
  • Drucken
  • Seite
    / 280
  • Inhaltsverzeichnis
  • LESEZEICHEN
  • Bewertet. / 5. Basierend auf Kundenbewertungen
Seitenansicht 133
API In CPP
131
// now look @ the second car in the 16^0 place
if (hexToConvert[1] == 'f' || hexToConvert[1] == 'F') {
accumulated += 15;
} else if (hexToConvert[1] == 'e' || hexToConvert[1] == 'E') {
accumulated += 14;
} else if (hexToConvert[1] == 'd' || hexToConvert[1] == 'D') {
accumulated += 13;
} else if (hexToConvert[1] == 'c' || hexToConvert[1] == 'C') {
accumulated += 12;
} else if (hexToConvert[1] == 'b' || hexToConvert[1] == 'B') {
accumulated += 11;
} else if (hexToConvert[1] == 'a' || hexToConvert[1] == 'A') {
accumulated += 10;
} else {
accumulated += atoi(char1);
}
DEBUG ? printf("%d\n", accumulated) : 0;
return (char)accumulated;
}
/********************************************************************
* Test whether or not this system is little endian at RUNTIME
* Courtesy: http://download.osgeo.org/grass/grass6_progman/endian_8c_source.html
********************************************************************/
bool MikrotikAPI::IsLittleEndian()
{
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:/ / sourceforge. net/ projects/ libmd5-rfc/ files/
[2] http:/ / download. osgeo. org/ grass/ grass6_progman/ endian_8c. html
Seitenansicht 133
1 2 ... 129 130 131 132 133 134 135 136 137 138 139 ... 279 280

Kommentare zu diesen Handbüchern

Keine Kommentare