Re: [Sdcc-user] PIC 18F2550 vs. printf/sprintf

2006-08-29 Thread Easy B
Hi Chris Thanx a lot. I totally forgot about the stack. Exactly this problem is even documented in the sdcc docs. From now on I always will consult the docs first. I see that now the PIC port is documented a lot better than before. Anyway, printf works fine now.. I also tried your script, b

Re: [Sdcc-user] PIC 18F2550 vs. printf/sprintf

2006-08-29 Thread Chris Emerson
On Mon, Aug 28, 2006 at 07:32:47PM +0200, Easy B wrote: > >volatile int i; > >i=7; > >stdout=STREAM_USER; > >printf("%s", i); > > Wont work. But "printf("%c", i); " results the character with the > ASCII code 7. Strings and characters aren't the problem though. As > soon as I use something ot