Mail Archives: djgpp-workers/1996/07/29/09:01:33
> > The old routine will be linked anyway, since the new one will be only
> > called for '%Le' (probably it could be modified to support other
> > formats, but it is for long doubles only).
>
> How will the linker know if you use %Le in a printf format?
Of course it won't! But it does not need to. Libc will contain, say,
an empty long double->string converting function, returning ERR, and
libm will contain full-functional such a function. Then, doprnt will
call the function for '%Le' and if it returns ERR, doprnt will fall-back
to old converting routine, which is always linked in for other formats.
- Raw text -