Joined
Last Seen
0 Reputation Points
Unknown Quality Score
No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
0 Endorsements
Ranked #107.70K
1 Posted Topic
Translation of the Previous Response Using strtol (Recommended) strtol is a function from the C standard library that converts a string to a long integer and provides error handling mechanisms. #include <stdio.h> #include <stdlib.h> #include <errno.h> #include <limits.h> int string_to_int(const char *str, int *result) { char *endptr; errno = 0; …
The End.
qq201508082015