title: C %[] conversion specifier and String functions
body: <p>I'm having a hard time coding understanding the format of the specifier and string functions.</p>
  
  <p>My aim is to use <code>%[]</code> to readin all characters and spaces and then use the strcpy function followed by the strcat function.</p>
  
  <p>So far i've managed to enter individual characters and print them out, excluding spaces.</p>
  
  <p>here's the code so far;</p>
  
  <pre><code>int main(int argc, char** argv)  {
      char words[30];
      int loops;
      printf("How many letters would you like to enter? - ");
      scanf("%d",&amp;loops);
      for(int i=0;i&lt;loops;i++){
        printf("Provide some text as input:");
        scanf("%s", &amp;words[i]);
      }
      printf("%d", strlen(words));
  
      printf("%s",&amp;words);
      return (EXIT_SUCCESS);
  }
  </code></pre>