PREV INDEX NEXT

Author: Stan Eisenstat
Subject: Re: [Cs323] Is strtoul() necessary?
Date: Sunday, 13 Sep 2020, 10:04:13


    > Message Posted By: Unknown
    >
    > Can we use atoi to convert string to int, and use isdigit to check if it
    > is a number, and if the number is out of range (in this case, atoi is
    > going to return -1)

atoi() is only able to deal with strings representing
numbers that are less than or equal to INT_MAX.  Unlike
/bin/find, fiend is not so limited.

--Stan-
PREV INDEX NEXT