Created
September 26, 2014 19:45
-
-
Save mcgirr/6a3299b53dbafaf450c8 to your computer and use it in GitHub Desktop.
C code to simply print the cocktail Emoji to the terminal.
This file contains hidden or 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
/* | |
* emoji.c | |
* Mike McGirr | |
* A little bit of code to print out the cocktail emoji. | |
*/ | |
#include <stdio.h> | |
#include <wchar.h> | |
#include <locale.h> | |
int main() | |
{ | |
setlocale(LC_ALL, "en_US.utf8"); | |
const wchar_t martini_emoji = 0x1F378; | |
printf("Let's go drink some %lc\n", martini_emoji); | |
return 0; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment