zizi21
asked on
urgent : atoi vs strtol
hi,
i was previously using atoi, and now, i am converting to strtol
id = strtol(str, NULL, 10);
i read the documentation , it says the second parameter could be a pointer or NULL ?
could i just put NULL? thanks
i was previously using atoi, and now, i am converting to strtol
id = strtol(str, NULL, 10);
i read the documentation , it says the second parameter could be a pointer or NULL ?
could i just put NULL? thanks
NULL, or '\0'
ASKER CERTIFIED SOLUTION
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
SOLUTION
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.