All of lore.kernel.org
 help / color / mirror / Atom feed
* atoi
@ 2008-07-26 13:52 Viswesh S
  2008-07-26 14:36 ` atoi Colin D Bennett
  0 siblings, 1 reply; 2+ messages in thread
From: Viswesh S @ 2008-07-26 13:52 UTC (permalink / raw)
  To: grub-devel

[-- Attachment #1: Type: text/plain, Size: 349 bytes --]

Hi,
Just a confirmation, 
Is there an implementation for atoi or similar conversion implemented in grub2 already.
I suppose, I need to implement it myself.
I am planning to implement a setpci command in grub2.Hence the question
Viswesh


      Did you know? You can CHAT without downloading messenger. Go to http://in.webmessenger.yahoo.com/

[-- Attachment #2: Type: text/html, Size: 805 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: atoi
  2008-07-26 13:52 atoi Viswesh S
@ 2008-07-26 14:36 ` Colin D Bennett
  0 siblings, 0 replies; 2+ messages in thread
From: Colin D Bennett @ 2008-07-26 14:36 UTC (permalink / raw)
  To: grub-devel

[-- Attachment #1: Type: text/plain, Size: 602 bytes --]

On Sat, 26 Jul 2008 06:52:31 -0700 (PDT)
Viswesh S <viswesh_vichu@yahoo.com> wrote:

> Hi,
> Just a confirmation, 
> Is there an implementation for atoi or similar conversion implemented
> in grub2 already. I suppose, I need to implement it myself.
> I am planning to implement a setpci command in grub2.Hence the
> question Viswesh

Try grub_strtoul(n, 0, 0) from 'kern/misc.c'.  It is better than atoi
since it provides error checking (if you choose to specify a char **end
as the 2nd arg instead of 0) and supports multiple bases (the 3rd arg;
0 means auto detect).

Regards,
Colin

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 197 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2008-07-26 14:37 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-07-26 13:52 atoi Viswesh S
2008-07-26 14:36 ` atoi Colin D Bennett

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.