Skip to content

Instantly share code, notes, and snippets.

@jkal
Created October 23, 2010 13:05
Show Gist options
  • Save jkal/642183 to your computer and use it in GitHub Desktop.
Save jkal/642183 to your computer and use it in GitHub Desktop.
#include <stdio.h>
#include <string.h>
int main (int argc, char const *argv[])
{
static char upcase[] =
"\0______________________________"
"_________________0123456789_____"
"__ABCDEFGHIJKLMNOPQRSTUVWXYZ____"
"__ABCDEFGHIJKLMNOPQRSTUVWXYZ____"
"________________________________"
"________________________________"
"________________________________"
"________________________________";
char string[] = "hello world";
for (int i = 0; i < strlen(string); i++) {
string[i] = upcase[string[i]];
}
puts(string);
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment