atoi
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/
Quoted 6 lines · On Sat, 26 Jul 2008 06:52:31 -0700 (PDT) Viswesh S <[email protected]>…
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