* string processing
@ 2012-05-07 9:28 christian.buettner
2012-05-07 9:50 ` Sascha Hauer
0 siblings, 1 reply; 4+ messages in thread
From: christian.buettner @ 2012-05-07 9:28 UTC (permalink / raw)
To: barebox
[-- Attachment #1.1: Type: text/plain, Size: 185 bytes --]
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?
- christian
[-- Attachment #1.2: Type: text/html, Size: 356 bytes --]
[-- Attachment #2: Type: text/plain, Size: 149 bytes --]
_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: string processing
2012-05-07 9:28 string processing christian.buettner
@ 2012-05-07 9:50 ` Sascha Hauer
2012-05-07 10:46 ` Antwort: " christian.buettner
0 siblings, 1 reply; 4+ messages in thread
From: Sascha Hauer @ 2012-05-07 9:50 UTC (permalink / raw)
To: christian.buettner; +Cc: barebox
On Mon, May 07, 2012 at 11:28:38AM +0200, christian.buettner@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 |
_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox
^ permalink raw reply [flat|nested] 4+ messages in thread
* Antwort: Re: string processing
2012-05-07 9:50 ` Sascha Hauer
@ 2012-05-07 10:46 ` christian.buettner
2012-05-08 7:24 ` Sascha Hauer
0 siblings, 1 reply; 4+ messages in thread
From: christian.buettner @ 2012-05-07 10:46 UTC (permalink / raw)
To: Sascha Hauer; +Cc: barebox
[-- Attachment #1.1: Type: text/plain, Size: 1012 bytes --]
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@pengutronix.de>
An: christian.buettner@rafi.de
Kopie: barebox@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@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 |
[-- Attachment #1.2: Type: text/html, Size: 2252 bytes --]
[-- Attachment #2: Type: text/plain, Size: 149 bytes --]
_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2012-05-08 7:24 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-05-07 9:28 string processing christian.buettner
2012-05-07 9:50 ` Sascha Hauer
2012-05-07 10:46 ` Antwort: " christian.buettner
2012-05-08 7:24 ` Sascha Hauer
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox