13.04.2015 Views

東海大學資訊工程與科學系畢業專題成果競賽 - 東海大學‧資訊工程學系

東海大學資訊工程與科學系畢業專題成果競賽 - 東海大學‧資訊工程學系

東海大學資訊工程與科學系畢業專題成果競賽 - 東海大學‧資訊工程學系

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

unsigned char xorChecksum = 0;<br />

for(int i = 0; i data[i];<br />

}<br />

return 0 == xorChecksum;<br />

}<br />

static int nonBlockingRead(int fd, void * buf, size_t size<br />

) /* ioctl implementation */<br />

{<br />

int nread;<br />

ioctl(fd, FIONREAD, &nread);<br />

if((nread

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!