I am trying to figure out how to get C to set an alarm for 30 minutes ahead of whatever the displayed time is. I got the rough draft of displaying the system time (although it does prompt me to input a new system time which im not too fond of) but unsure of what my options are when it comes to the 30 minute alarm timer.
Here is the system time code
Code:#include <stdio.h> #include <stdlib.h> #include <time.h> int main(void) { string thirty; time_t now; time(&now); alarm(&thirty)= time + 30; printf("%s", ctime(&now)); printf("%s", alarm(&thirty)); return EXIT_SUCCESS; }