Hi,
I am trying to copy the current time to a string but it throws a warning in dev c of about some "numeric value conversion to the other string".....I don't remember exactly.....but is the code Ok??
Code:#include<stdio.h> #include<time.h> #include<string.h> int main() { char dte[40]; time_t present; time(&present); strcpy(date,ctime(&present)); puts(date); getchar(); return 0; }