ok, heres what i have now. i still dont know how to check for the correct positioning of the letters though. how do i do that? will strcmp help?
Code:
void sort()
{
int count,count2;
char line[20],line2[20];
printf("Enter a string (1-20 characters):\n");
scanf("%s",&line);
for (count=0;count<strlen(line);count++)
{
if (isalpha(line[count]) > 0)
{
//i come here = i'm a letter!!
if (islower(line[count]) != 1)
//if its not lowercase, change it to lowercase
line2[count2] = tolower(line[count]);
else
line2[count2] = line[count];
count2++;
}
}
printf("Output:\n");
}