Also figured out the second part of the extra credit, determining how long each argument is using strlen().
void print_arguments(int argc, char *argv[])
{
int i = 0;
for(i = 0; i < argc; i++) {
unsigned long word_length = strlen(argv[i]);
print_letters(argv[i]);
printf("Argument %d is %lu character's in length.\n", i, word_length);
}
}
EDIT: I found a bug. When I add numbers on to a word, it removes them, but doesn’t remove the length of the word with numbers in the output, so I will fix that.