This is a good suggestion. The time.h defines a struct tm which includes members for years, months, days, etc. Then the functions you need are
strftime(3): format date/time - Linux man page...
Type: Posts; User: c99tutorial
This is a good suggestion. The time.h defines a struct tm which includes members for years, months, days, etc. Then the functions you need are
strftime(3): format date/time - Linux man page...
It might help to first write a program which is basically the same but simpler -- write a program that asks the user for simple integers until the user enters the special integer -999. Afterwards,...