help needed in fixing C programming error using cygwin !

Eric M. Monsler
Wed Dec 12 20:48:00 GMT 2001

Don't use strings for binary data.

Use an explicit character array, keeping track of the length yourself. 
When you send it to a device, you'll have to use read/write rather than
string operations.

It does seem convenient to use string functions, but you'll never get
around the magic nature of null characters without more trouble than it
is worth.  I went through this doing messaging across a serial port.

Eric M. Monsler

Unsubscribe info:
Bug reporting:

More information about the Cygwin mailing list