I want the time of day to be displayed in a program, but I don't want the day, year or the date. I checked out the functions ctime(), asctime() and tried to have a look at strftime() (but it didn't make much sense). The best sollution I could come up with was copying the output of ctime() to a string and then extract the time of day. But this is a whole operation, which I'm guessting is both time and memory consuming - at least if it's to be done every second.
Is there a simpler way to display just the time of day? Or is my sollution ok? If needed, I'll include some code here.