Antwort: Re: string processing

christian.buettner at rafi.de christian.buettner at rafi.de
Mon May 7 06:46:00 EDT 2012


Ok thx.
How about scanf variations? sscanf would fit best :)

How can i proceed adding those missing functions? Copy Paste from glibc?

- christian



Von:    Sascha Hauer <s.hauer at pengutronix.de>
An:     christian.buettner at rafi.de
Kopie:  barebox at lists.infradead.org
Datum:  07.05.2012 11:50
Betreff:        Re: string processing



On Mon, May 07, 2012 at 11:28:38AM +0200, christian.buettner at rafi.de 
wrote:
> hi all,
> 
> i was looking for c functions doing string processing. I cannot find 
> things like sscanf or atoi. 
> How do you work with strings when you implement custom commands?

We have simple_strtoul which currently is the only function to help with
string to integer conversion.

Sascha

-- 
Pengutronix e.K.                           |                             |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.infradead.org/pipermail/barebox/attachments/20120507/25a07918/attachment.html>


More information about the barebox mailing list