Audiovox P965 Datový list Strana 241

  • Stažení
  • Přidat do mých příruček
  • Tisk
  • Strana
    / 280
  • Tabulka s obsahem
  • KNIHY
  • Hodnocené. / 5. Na základě hodnocení zákazníků
Zobrazit stránku 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.
Zobrazit stránku 240
1 2 ... 236 237 238 239 240 241 242 243 244 245 246 ... 279 280

Komentáře k této Příručce

Žádné komentáře