Converting char to unsigned int?

strtoul (or strtol) will not only convert but it will help scan.