Skip to content

Instantly share code, notes, and snippets.

@Dglgmut
Created November 9, 2011 00:35
Show Gist options
  • Save Dglgmut/1349874 to your computer and use it in GitHub Desktop.
Save Dglgmut/1349874 to your computer and use it in GitHub Desktop.
uini
‎#include <stdlib.h> // for itoa() call
#include <stdio.h> // for printf() call
int main() {
int num = 123;
char buf[5];
// convert 123 to string [buf]
itoa(num, buf, 10);
// print our string
printf("%s\n", buf);
system ("PAUSE");
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment