I am using the fputs function to create a list, but all of the items in the list are on the same line. Any idea how to get the fputs function to put in a carriage return?
I am using the fputs function to create a list, but all of the items in the list are on the same line. Any idea how to get the fputs function to put in a carriage return?
Add a newline to the end of whatever string you are printing. Or just use puts, or fprintf or some other random function.
Quzah.
Hope is the first step on the road to disappointment.
I have to add the item through a function and I forgot to say that the list it being written to a text file.
So strcat on a newline, or use fprintf instead.
Quzah.
Hope is the first step on the road to disappointment.
There's also fputc, as in fputc('\n', fp).