atol() v/s. strtol()

strtol provides you with more flexibility, as it can actually tell you if the whole string was converted to an integer or not. atol, when unable to convert the string to a number (like in atol(“help”)), returns 0, which is indistinguishable from atol(“0”): int main() { int res_help = atol(“help”); int res_zero = atol(“0”); printf(“Got … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)