I am writing code that accepts a string of a filename, then capitalize the letters, not changing any numbers or special characters. I think I am on the right path, but can some one give a little push to the right direction.
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <ctype.h>
#define CHARSIZE 101
int main()
{
char filename[CHARSIZE];
printf("Enter the filename that you want to open. /n");
gets(filename);
toupper(filename);
puts(filename);
return 0;
}