mail archive of the barebox mailing list
 help / color / mirror / Atom feed
From: christian.buettner@rafi.de
To: Sascha Hauer <s.hauer@pengutronix.de>
Cc: barebox@lists.infradead.org
Subject: Antwort: Re: string processing
Date: Mon, 7 May 2012 12:46:00 +0200	[thread overview]
Message-ID: <OFD0FFDBEE.D1D1B52B-ONC12579F7.003A6D09-C12579F7.003B1F22@o0802.rafi.inhouse> (raw)
In-Reply-To: <20120507095032.GA27341@pengutronix.de>


[-- 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

  reply	other threads:[~2012-05-07 10:46 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-05-07  9:28 christian.buettner
2012-05-07  9:50 ` Sascha Hauer
2012-05-07 10:46   ` christian.buettner [this message]
2012-05-08  7:24     ` Antwort: " Sascha Hauer

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=OFD0FFDBEE.D1D1B52B-ONC12579F7.003A6D09-C12579F7.003B1F22@o0802.rafi.inhouse \
    --to=christian.buettner@rafi.de \
    --cc=barebox@lists.infradead.org \
    --cc=s.hauer@pengutronix.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox