On Sat, 26 Jul 2008 06:52:31 -0700 (PDT) Viswesh S <[EMAIL PROTECTED]> 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
signature.asc
Description: PGP signature
_______________________________________________ Grub-devel mailing list Grub-devel@gnu.org http://lists.gnu.org/mailman/listinfo/grub-devel