Created
April 19, 2013 04:21
-
-
Save szolotykh/5418136 to your computer and use it in GitHub Desktop.
Int to string function. Note: Don't forget to free the memory after using function
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
char* intToStr(int num){ | |
char* str = (char*)malloc(12); | |
sprintf(str, "%d", num); | |
return str; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment