Hi
What does "printf("%d", 7);" do on your system? Well I would expect the same output like: "printf("%c", 7 + 48);" , the ASCII character "7". I figured out that I only get garbage when I do something like "printf("%s", 'H');". The code is wrong and causes a "Bus error" on my computer. Something like this works fine: char s[2] = {'H', '\0'}; printf("%s", 's'); Or just "H" In the other cases my program hangs. Defining putchar didn't work. It didn't compile and I don't know how to make it. PUTCHAR(char c) { usart_putc(c); } I get this error: sdcc -mpic16 -p18f2550 i2cIF.c i2cIF.c:26: error 141: two or more data types in declaration for 'type_specifier_list type_specifier' i2cIF.c:28: error 103: code not generated for 'putchar' due to previous errors -:0: error 103: code not generated for 'main' due to previous errors -:0: warning 85: in function main unreferenced local variable : 'buf' make: *** [all] Error 1 BTW "printf_small" and "tiny" don't work at all. Any ideas? Anyway. thanx for your effort. Hope we can solve this. Cheers, Ezra. On 28.08.2006, at 02:05, [EMAIL PROTECTED] wrote:
|
------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________ Sdcc-user mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/sdcc-user
