Printing non-printing characters in ^ and M- notation
I have a project to implement the UNIX cat program with 3 flags, -v, -E and one of our choosing. I have everything working except for the -v flag.
The -v flag is:
Quote:
-v, --show-nonprinting
use ^ and M- notation, except for LFD and TAB
I have been looking through documentation and cannot find anything about C having a print command using ^ and M- notation. Is there one?
I've attached a file with output for all 255 values of a char with the -v flag and without it. I can see a pattern there that I could implement, it just seems like this should already be built into the language somewhere. Thank you in advance for the help.
can someone clarify what the business is with the negative values?
I thought the c can go up to 255. why does c go negative and is there any documentation anywhere that clarifies this?
thanks