Skip to content

Instantly share code, notes, and snippets.

@piyushchauhan2011
Created December 4, 2019 09:05
Show Gist options
  • Save piyushchauhan2011/a06b0c2de5cd8e8f0e9c039d4d8137d3 to your computer and use it in GitHub Desktop.
Save piyushchauhan2011/a06b0c2de5cd8e8f0e9c039d4d8137d3 to your computer and use it in GitHub Desktop.
C check mark and cross mark terminal unicode characters
#include <stdio.h>
#include <wchar.h>
#include <locale.h>
int main() {
setlocale(LC_CTYPE, "");
wchar_t checkMark = 0x2713;
wchar_t crossMark = 0x2717;
wprintf(L"%lc\n", checkMark);
wprintf(L"%lc\n", crossMark);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment