- Sep 13, 2001
- 53,505
- 6,345
- 126
this is very simple.
i am taking a clock count on the computer and getting a value in clock_t type.
however I want to write it to a file using fwrite() and i can't just write it in clock_t type because it takes void * as its type.
how can i get this clock_t type to work with the fwrite function? i know its basic but i can't remember lol, thanks!
i am taking a clock count on the computer and getting a value in clock_t type.
however I want to write it to a file using fwrite() and i can't just write it in clock_t type because it takes void * as its type.
how can i get this clock_t type to work with the fwrite function? i know its basic but i can't remember lol, thanks!