Ok so I am stuck on pset2 initials. My code successfully prints out the first letter. I want to print out the ith character, I'm checking for a space with isblank() with an if statement which if true then I thought would print out the ith character but instead its printing the entire string.
int main(void)
{
// Prompts and retreves user input.
printf("Enter Name: ");
string name = GetString();
if (name != NULL)
{
printf("%c", name[0]);
for(int i = 0; i < strlen(name); i++)
{
if(isblank(name[i]));
{
printf("%c", name[i]);
}
}
printf("\n");
}
}