From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from mx2.rafi.de ([178.15.151.13]) by merlin.infradead.org with esmtp (Exim 4.76 #1 (Red Hat Linux)) id 1SRLS6-00039l-MA for barebox@lists.infradead.org; Mon, 07 May 2012 10:46:03 +0000 In-Reply-To: <20120507095032.GA27341@pengutronix.de> References: <20120507095032.GA27341@pengutronix.de> MIME-Version: 1.0 Message-ID: From: christian.buettner@rafi.de Date: Mon, 7 May 2012 12:46:00 +0200 List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: multipart/mixed; boundary="===============4655337381067292632==" Sender: barebox-bounces@lists.infradead.org Errors-To: barebox-bounces+u.kleine-koenig=pengutronix.de@lists.infradead.org Subject: Antwort: Re: string processing To: Sascha Hauer Cc: barebox@lists.infradead.org Dies ist eine mehrteilige Nachricht im MIME-Format. --===============4655337381067292632== Content-Type: multipart/alternative; boundary="=_alternative 003B1F21C12579F7_=" Dies ist eine mehrteilige Nachricht im MIME-Format. --=_alternative 003B1F21C12579F7_= Content-Type: text/plain; charset="US-ASCII" 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 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 | --=_alternative 003B1F21C12579F7_= Content-Type: text/html; charset="US-ASCII" 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 |

--=_alternative 003B1F21C12579F7_=-- --===============4655337381067292632== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ barebox mailing list barebox@lists.infradead.org http://lists.infradead.org/mailman/listinfo/barebox --===============4655337381067292632==--