There are some functions for converting strings to the number values they 
represent.  Look in shelllib.

-Jaben

From: Nguyễn Văn Hiễn [mailto:[email protected]]
Sent: Sunday, September 07, 2014 7:57 PM
To: [email protected]
Subject: [edk2] Get number from keyboard

Hi all,
I'm writing an application running on Shell. It reads user's input (number) 
from keyboard to do somethings. But when I enter number 1, it gets the number 
49 (ASCII).
How can I get the input exactly?
ShellAppMain (
  IN UINTN    Argc,
  IN UINT64   **Argv
  )
{
  AtaDataTest.StartBlock = *Argv[1];
  DBG ("StartBlock: %d\n", AtaDataTest.StartBlock);
}
Thanks for any help,
Hien

=================
HCMUT
[email protected]<mailto:[email protected]>
------------------------------------------------------------------------------
Want excitement?
Manually upgrade your production database.
When you want reliability, choose Perforce
Perforce version control. Predictably reliable.
http://pubads.g.doubleclick.net/gampad/clk?id=157508191&iu=/4140/ostg.clktrk
_______________________________________________
edk2-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/edk2-devel

Reply via email to