Hi, I'm programming in Windows right now, but portable code would be welcomed too.
What I'm using right now is fwrite(4)
, but this function needs a maximum number of elements to be written to the file. I can use strlen(1)
here but I'd like to know if there is any better way to do this.