Parses str interpreting its content as an integral number of the specified base, which is returned as an int value. If idx is not a null pointer, the function also sets the value of idx to the position of the first character in str after the number. The function uses strtol (or wcstol) to perform the conversion (see strtol for more details on the process). I've indirectly fixed the problem. Instead of trying to use C11's stoi function, I've just changed the string to a char array and used the standard atoi function instead, which seems to be working fine. Dev-C A free, portable, fast and simple C/C IDE. From memory, I can tell you that stoi and friends are Microsoft specific extensions of C11. This means that.
|
AuthorWrite something about yourself. No need to be fancy, just an overview. Archives
December 2020
Categories |