title: How to abbreviate a full name in C?
body: <p>I am trying to get a full name from the user and display his name abbreviated, something like that : </p>
  
  <pre><code>“Edward Cantrell Cavender Davis” --&gt; Name the user entered
  
  "DAVIS, E. C. C.” -- Name abbreaviated
  </code></pre>
  
  <p>The problem is that I don't know how to do that, being new in C, I am thinking if there some library that does this, maybe.</p>
  
  <p>The maximum size name that the user can enter is <code>200</code>, and I need to check this through a function and display the name abbreviated.</p>
  
  <p><strong>My code : (I am stuck here)</strong> </p>
  
  <pre><code>#include &lt;stdio.h&gt;
  #include &lt;stdlib.h&gt;
  #include &lt;string.h&gt;
  
  void name_abbreviated (char name[200]) {
  
  }
  
  int main() {
      char name[200];
      printf("Type a full name : ");
      gets(name);
      name_abbreviated(name);
  }
  </code></pre>