On Tue, 25 Jan 2005 11:29:19 +0200, ocl writes: > >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"); In printf syntax, you should use %% to get a single % displayed. `man 3 printf` cheers, &rw -- / Ing. Robert Waldner | Security Engineer | CoreTec IT-Security \ \ <rw@coretec.at> | T +43 1 503 72 73 | F +43 1 503 72 73 x99 /
Attachment:
pgpBSpUVXKcnG.pgp
Description: PGP signature