Skip to content

Instantly share code, notes, and snippets.

@TheAnonymous
Created November 2, 2010 13:17
Show Gist options
  • Save TheAnonymous/659587 to your computer and use it in GitHub Desktop.
Save TheAnonymous/659587 to your computer and use it in GitHub Desktop.
Make a int to a const char array pointer
int operator1 = 12;
const gchar * operator1_char = g_strdup_printf("%d", operator1);
//Only tested with compileroption -std=gnu++0x
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment