I have this function...
But evey time it is called throughout the program I get the same time. I have heard of this happening before but I don't know how to fix it.Code:tm* get_time_stamp(void){ time_t timer = time(NULL); return localtime(&timer); }
Second question:
how can I use printf to print trailing spaces with a string up to a certain number. I want print 20 character no matter how long the string is. I know how to print a maximum of character but how to print a minimum?



LinkBack URL
About LinkBacks



I wasn't after a consistent delay, just something in place to make time pass for a while.