hex string to word32 conversion

ofirg
ofirg used Ask the Experts™
on
is there any standard c function to convert hexadecimal number from its char* representation to WORD32?
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Commented:
 char *hex="1a2b3c4d";
  long n;

  sscanf(hex,"%x",&n);
  printf("n=%d 0x%8x\n",n,n);

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial