On Thu, 09 Nov 2006 14:37:33 -0200 "Cassio B. Caporal" <[EMAIL PROTECTED]> 
wrote:

:       Hey,

Hi,

: 
:       I have problems to print '%' in stdout... Suppose code below:
: 
:               #include <stdio.h>
: 
:               main() {

your main should be of type 'int'.

:                        char foo[] = "bar=30%\n";
:                        fprintf(stdout, bar);

You mean "fprintf(stdout, foo);" ?

:               }
: 
:       How can I solve this? Thanks,

If you want to print a '%', you need to use '%%' in your array.

--steffen

-- 
website: http://cdp.doomed-reality.org
hardened linux: http://drlinux.doomed-reality.org

Reply via email to