string to integer conversion edgecase handling
I want to convert a number, given in string format to an integer. I’ve found multiple solutions for this, like atoi() or strtol(). However, if not given an Input, that could be converted to an integer, like strtol("junk", &endptr, 10) I just get back the integer 0. This conflicts with cases, where I actually have… Read More string to integer conversion edgecase handling