N
N U
How to program your own escape sequence [programmer defined] using
basic functions available in C?
basic functions available in C?
How to program your own escape sequence [programmer defined] using
basic functions available in C?
N U said:How to program your own escape sequence [programmer defined] using
basic functions available in C?
Jeff said:You didn't describe your question clearly. If you want to write your own
"print line" function to replace printf, then you should use string function
to locate the "\" and insert the things you wanted.
Tom Zych said:Problem with that is, the compiler will see them first and convert
them. So you'd have to use \\ everywhere. Fuggly...
Jeff said:Yes, even the OP use another character as the escape character, the "\" will
still confuse the compiler.
Jeff said:N U said:How to program your own escape sequence [programmer defined] using
basic functions available in C?
You didn't describe your question clearly. If you want to write your own
"print line" function to replace printf, then you should use string function
to locate the "\" and insert the things you wanted.
N said:Jeff said:How to program your own escape sequence [programmer defined]
using basic functions available in C?
You didn't describe your question clearly. If you want to write
your own "print line" function to replace printf, then you
should use string function to locate the "\" and insert the
things you wanted.
What i meant by progammer defined escape sequence was something,
like ctrl+c/d that terminates an application. in case the
programmer want to define something like this and then use that
escape seq. to partially terminate the application i.e go from
one part to another through the use of escape sequence [without
using the menu's].
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.