Skip to content

Latest commit

 

History

History
5 lines (3 loc) · 245 Bytes

README.md

File metadata and controls

5 lines (3 loc) · 245 Bytes

Exercise 2-3

Write the function htoi(s), which converts a string of hexadecimal digits (including an optional 0x or 0X) into its equivalent integer value.

The allowable digits are 0 through 9, a through f, and A through F.