#include <stdio.h>

void title_fix(char *string)
{

  if (*string)
    {
      *string++ = toupper(*string);
    }

  while (*string)
    {
      *string++ = tolower(*string);
    }
}

main()
{
  char title[100] = "understanding C pointers";
  title_fix(title);
  (void) printf("Title is: %s\n", title);
  exit(0);
}

