title: Generating username from first name and last name in C
body: <p>I am writing a C program to generate userid's from a given file (<code>users</code>). The file has each user's first and last names each line (eg. "John Smith", "Steve Mathews" etc). The following <code>while</code> loop reads each line from <code>users</code> and prints in the console in all lowercase. In this case, <code>single_line</code> holds names in lower case.</p>
  
  <pre><code>while(!feof(fp)) {
          fgets(single_line, 80, fp);
          for(int i = 0; single_line[i]; i++){
            single_line[i] = tolower(single_line[i]);
          }
          char f_letter = single_line[0];
          char r_letters[20];
  }
  </code></pre>
  
  <p>Now, I want to create a username for each <code>single_line</code> with the first letter of the first name and remaining letters of last name. So far, <code>f_letter</code> holds the first letter of first name, how can I make <code>r_letters</code> hold the remaining letters of last name?</p>