str2hex
 
Syntax


int str2hex (char *  stringPointer );

Description


str2hex returns the numeric value of the string pointed to by stringPointer.  The default conversion uses hexadecimal.

Example

 while (1) {
  printStr("enter option:");
  getStr(instring, 100);
  inval = str2hex(instring);
  
  switch (inval) {
   case 1:
 ...
See also