Link to home
Create AccountLog in
Avatar of zizi21
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
Avatar of droyden
droyden

NULL, or '\0'
ASKER CERTIFIED SOLUTION
Avatar of LordOfPorts
LordOfPorts
Flag of United States of America image

Link to home
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
See answer
SOLUTION
Link to home
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.