title: Make word lowercase in C with function
body: <p>I'm not sure what the problem is. The function seems to be working well, but in the main function, when testing with a <code>printf</code>, it doesn't show the result.</p>
  
  <pre><code>char* MotMiniscule(char* mot)
  {
  char motm[100],c,*motf;
  int i=0;
  strcpy(motm,mot);
  c=motm[i];
  while(c!='\0')
  {
      printf("%c \n",c);
      motm[i]=tolower(c);
      i++;
      c=motm[i];
  }
  strcpy(motf,motm);
  printf("%s\n",motf);
  return(motf);
  }
  
  main()
  {
  char *mot="HEllooOoMA",*min;
  min=MotMiniscule(mot);
  printf("\n le mot est %s:\n",mot);
  printf("|| %s  ||",min);
  }
  </code></pre>
  
  <p><img src="https://i.stack.imgur.com/w6BXO.png" alt="Image"></p>