Re: vsprintf

David Brown <[email protected]> Thu, 26 Mar 2009 16:30:43 +0100
Newsgroups gmane.comp.hardware.motorola.microcontrollers.coldfire
Message-ID <[email protected]>
Granville Gregg wrote:
  >
> Hi
> 
> Anyone know where I can get the source for vsprintf for the GCC compiler 
> I am in need of it for a project based on U-Boot for the MCF54450
> 
>  
> 
> What I am exactly looking for is standard libraries written in C which 
> would give me support for printing of doubles (i.e. atof, vsprintf with 
> %f, etc..).  I need the C source code so I can drop it into our current 
> embedded system
> 
> 
> Gregg
> 

gcc doesn't have a vsprintf function - that's part of the C library, not 
the C compiler.  So you want to look in the source code for a C library. 
  Different C libraries have different licenses - you cannot take the 
vsprintf code from the gnu libc and paste it into your code unless your 
entire code is (L)GPL.  An alternative source that might be a better 
choice is newlib (BSD-style license).

mvh.,

David
---
[email protected]              Send a post to the list.
[email protected]        Join the list.
[email protected]    Join the list in digest mode.
[email protected]     Leave the list.