>>100562130
Thanks for the inspiration
long str_to_int(char *str, char base)
{
long result = 0;
char sign = 1;
if (base < 0 || base > 36)
return LONG_MIN;
if (*str == '-')
sign = -1, str++;
for (; *str; str++)
{
Comment too long. Click here to view the full text.