Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
#include <stdio.h>
#define A 65
#define a 97
int main(int argc, char**argv)
{
int i = 1;
while(i < argc)
{
int j = 0;
while(argv[i][j] != '\0')
{
if (a <= argv[i][j] && a + 25 >= argv[i][j])
{
argv[i][j] += (A-a);
}
j++;
}
printf("%s", argv[i]);
i++;
if (i < argc)
{
printf(" ");
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment