I don’t know the data type of time_t. Is it a floating double or something else? Because if I want to display it, I need the label corresponding to printf. I can process the rest from there to display the time_t, but I need to know the data type corresponding to it.
See the answer in English> What is time_t ultimately a typedef to? 10
I don’t know the data type of time_t. Is it a floating double or something else? Because if I want to display it, I need the label corresponding to printf. I can process the rest from there to display the time_t, but I need to know the data type corresponding to it.
Unfortunately, it is not completely portable. It is usually an integer, but it can be any “integer or real floating type”.