Quote Originally Posted by lugnut View Post

If I can get this code to work, then I'll know how to make the real code work. It also has several diagnostic printf's. It took me a while to get the debugger going. Incidentally, I got all kinds of errors trying to initialize hdr1 and hdr2 with
Code:
 hdr1 = {"a","b","c"};
. I got this straight out of a book.
I haven't carefully read the address part yet, so I won't speak to that yet -- maybe later. But what your book did say was
Code:
hdr1 = {'a', 'b', 'c'};
which is not quite what you tried.

Edit: Well, I suppose I should say that what works is using 'characters' and not "strings"; without looking at your book maybe it's a misprint.