OT: Escaping %s
I am not a C programmer; all I am doing is to modify some source
so that it is a little more helpful to the user.
I want to display the following exact string to the user:
date --date="Mon Jan 10 08:00:20 CET 2005" + "%s"
When I use this
printf("date --date=\"Mon Jan 10 08:00:20 CET 2005\" + \"%s\"\n");
When './myyappname' runs I get this:
date --date="Mon Jan 10 08:00:20 CET 2005" +"./myyappname"
This must be simple, but I dont know how.
Could someone get me out of this.
Cheers,
Ray
Reply to: