title: Can you write to a byte array using a FILE*
body: <p>C# has a neat feature of being able to write to a memory stream using the MemoryStream object.</p>
  
  <p>I'm looking for similar functionality from C using a FILE* pointer.</p>
  
  <p>I want to be able to sprintf() but with the added functionality of having C remember "where I was" in the buffer I'm writing to.</p>