On Tue, 2005-01-25 at 11:29 +0200, ocl wrote: > 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"); Have you tried escaping the %? I.e.: \% -- ----------------------------------------------------------------- Ron Johnson, Jr. Jefferson, LA USA PGP Key ID 8834C06B I prefer encrypted mail. "The man who has gotten everything he wants is all in favor of peace and order." Jawaharlal Nehru
Attachment:
signature.asc
Description: This is a digitally signed message part