Convert a hexadecimal string to an integer efficiently in C?

You want strtol or strtoul. See also the Unix man page

Leave a Comment