5

Using const char*

view full story
linux-howto

http://www.unix.com – I am writing some code in C++ to print a message using fprintf Here is an example Code: void pr_desc(    FILE*  stream,    int      shift,   const char*  desc) {   const char*  format="%*s\e[0;37m%s\e[0m\n";   fprintf(stream,format,shift,"",desc); } I call it using Code: const char*  desc;  desc="display susage"; pr_desc(stream, msgShift, desc); desc="prints some examples"; pr_desc(stream, msgShift, desc); desc="display this usage information&quot (HowTos)