Well,
only printf() like implemented. printf() does not support floating point cause
FP enormously enlarges function code.
I do FP print as:
m = consu/1000. ;
e = ((uint32_t)consu)%1000;
snprintf(buf,20,"CONSUMPTION %d.%03d ",m,e);
sscanf() is not implemented - nobody submitted it yet :)
It is possible to have as many printf() as you want in the same library.
It is impossible to tell the compiler which one to use.
'pragma's are not implemented and won't be.
Only defines will help ...
~d
On Wednesday 23 October 2002 22:14, Lev Serebryakov wrote:
> Hello, Dmitry!
> Wednesday, October 23, 2002, 9:19:24 PM, you wrote:
>
> D> Fixed.
> Compiled Ok. Thank you very much.
>
> BTW, is it possible to have many than one printf() and scanf()-like
> functions and select between them with `-mXXX' option of compiler or
> with #pragma? IAR C have such ability, and it is very useful, IMHO,
> because not all projects need "%f" format, for example.
>
> I think, we need to place these functions to different libraries
> (not to libc) and add `-mXXX' options to spec-file. Am I right? Or.
> may be, there are way to have all these variants in all library with
> different names and #define printf() and others to `actual' names?
> Is it good solution? I could try to prepare patches for msp430-libc
> for #define-related solution.
>
>
> Lev Serebryakov
> /-----------------------------------------------\
>
> | FIDONet: 2:5030/661.0 |
> | E-Mail: [email protected] |
> | Page: http://lev.serebryakov.spb.ru/ |
> | ICQ UIN: 3670018 |
> | Phone: You know, if you have world nodelist |
>
> \===============================================/
>
>
>
> -------------------------------------------------------
> This sf.net email is sponsored by: Influence the future
> of Java(TM) technology. Join the Java Community
> Process(SM) (JCP(SM)) program now.
> http://ads.sourceforge.net/cgi-bin/redirect.pl?sunm0002en
>
> _______________________________________________
> Mspgcc-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/mspgcc-users