Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Apple Xcode
- #include <stdio.h>
- #include <stdlib.h>
- #include <string.h>
- int main (int argc, const char * argv[])
- {
- // string to num
- char *the_string = malloc(8);
- strcpy(the_string, "123");
- int the_int = atoi(the_string);
- printf("%s para %i\n", the_string, the_int);
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement