title: Appending a char w/ null terminator in C
body: <p>perhaps a lil trivial, but im just learning C and i hate doing with 2 lines, what can be done with one(as long as it does not confuse the code of course).</p>
  
  <p>anyway, im building strings by appending one character at a time. im doing this by keeping track of the char index of the string being built, as well as the input file string's(line) index.</p>
  
  <pre><code>str[strIndex] = inStr[index];
  str[strIndex + 1] = '\0';
  </code></pre>
  
  <p>str is used to temporarily store one of the words from the input line.
  i need to append the terminator every time i add a char.</p>
  
  <p>i guess what i want to know; is there a way to combine these in one statement, without using strcat()(or clearing str with memset() every time i start a new word) or creating other variables?</p>