C - What is the &endptr we use on strtol()?
I haven't found any answer to this. I know we're supposed to use strtol like this strtol(str, &endptr, base), but it doesn't seem to make sense. If it asked for the last character of the stror maybe the position of the \0 in the str, then it would make more sense to me, but I just don't get it.