04-15-2009 01:36 PM
04-16-2009 03:57 AM
04-16-2009 10:18 AM
For my application I'm using Ethernet, but would like to be able to use a protocal indepedent method of determining if the buffer is empty or full.
04-17-2009 09:57 AM
Steve,
Have you tried handling the error and setting your return value to empty if you get an error? If you do this, make sure to document it extremely well, or if someone ever inherits your code, they may be very confused, when that function does not throw errors. Here is a link to a good site on error handling in ANSI-C: Exceptions in C with Longjmp and Setjmp.