I have something like this:
char *current_day, *current_time;
It prints the current day and time in the stdout, but I want to get this output or assign them to the
variables, so that I can do some processing with those values later on.
current_day ==> current day
current_time ==> current time
The only solution that I can think of now is to direct the output to some file, and then read the file and then assign the values of date and time to
. But I think this is not a good way. Is there any other short and elegant way?