Audiovox P965 Ficha Técnica Página 241

  • Descarregar
  • Adicionar aos meus manuais
  • Imprimir
  • Página
    / 280
  • Índice
  • MARCADORES
  • Avaliado. / 5. Com base em avaliações de clientes
Vista de página 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.
Vista de página 240
1 2 ... 236 237 238 239 240 241 242 243 244 245 246 ... 279 280

Comentários a estes Manuais

Sem comentários