[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: atoi

From: Colin D Bennett
Subject: Re: atoi
Date: Sat, 26 Jul 2008 07:36:35 -0700

On Sat, 26 Jul 2008 06:52:31 -0700 (PDT)
Viswesh S <address@hidden> 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).


Attachment: signature.asc
Description: PGP signature

reply via email to

[Prev in Thread] Current Thread [Next in Thread]