try assigning te value to a string seperately and pass the pointer to that string instead of passing the string and see if it wrks Alok -----Original Message----- From: Dale Botkin [mailto:dale@BOTKIN.ORG] Sent: Friday, May 26, 2000 7:01 PM To: PICLIST@MITVMA.MIT.EDU Subject: [OT]: C syntax question Hi, I'm a newcomer to C, and there are a lot of things I simply don't understand yet - so I usually avoid them. However, I'm trying to port some code from one compiler to another. It was written for Hi-Tech C, and I use CC5Xfree. I'm getting one error message I can't seem to work around, and I don't know what exactly the problem is. There is a function defined like so: void MakePacket(unsigned int packet, unsigned char code, unsigned char num, unsigned char *str){...} and later on the program tries to do this: MakePacket(LCP,REQ,number,"\x0E\x02\x06\x00\x0A\x00\x00\x07\x02\x08\x02"); (Yes, that is from AN721, and yes, I'm trying to bit-bang IP...) The compiler says: MakePacket(LCP,REQ,number,"\x0E\x02\x06\x00\x0A\x00\x00\x07\x02\x08\x02"); ^------ Error C:\PROGRA~1\MPLAB\PPPTEST.C 430: Syntax error (or limitation) I've tried it with quotes (as it originally was), without the quotes, with single quotes, parentheses, etc. with no luck. Now, I realize I'm using a free version of CC5X or I could just email for support. I'm getting close to making a decision to actually buy a compiler, but I don't want to buy all of them, since I do this for fun and they're not cheap. That's why I need to figure out now if one or another is going to be a limiting factor as I learn more about C. So, that's why I'm asking here -- is there something I'm not aware of that will make this work, or does CC5X simply not support this type of thing? I've looked through the docs and a couple of C/C++ books and not found anything to shed any real light on this, though I admit I've spent a limited time with the books so far. Thanks, Dale --- The most exciting phrase to hear in science, the one that heralds new discoveries, is not "Eureka!" (I found it!) but "That's funny ..." -- Isaac Asimov