Audiovox P965 Datenblatt Seite 241

  • Herunterladen
  • Zu meinen Handbüchern hinzufügen
  • Drucken
  • Seite
    / 280
  • Inhaltsverzeichnis
  • LESEZEICHEN
  • Bewertet. / 5. Basierend auf Kundenbewertungen
Seitenansicht 240
API in C
238
{
writeSentence(fdSock, &stSentence);
// receive and print response block from the API
stBlock = readBlock(fdSock);
printBlock(&stBlock);
// clear the sentence
clearSentence(&stSentence);
}
}
// if nothing else, simply add the word to the sentence
else
{
addWordToSentence(&stSentence, cWordInput);
}
}
apiDisconnect(fdSock);
exit(0);
}
Notes
The code has been tested with up to 3-byte encoded length. 4 and 5 byte encoded length have not been tested yet.
The logic for 4-byte length should work, and 5-byte lengths are too long for standard-sized int in C.
The code has been tested successfully with little endian (PC) and big endian (MIPSBE) processors.
Seitenansicht 240
1 2 ... 236 237 238 239 240 241 242 243 244 245 246 ... 279 280

Kommentare zu diesen Handbüchern

Keine Kommentare