settime
settime
settime是一種函數名。
函數名: settime
功 能: 設置系統時間
#include
#include
int main(void)
{
struct time t;
gettime(&t);
printf("The current minute is: %d\n", t.ti_min);
printf("The current hour is: %d\n", t.ti_hour);
printf("The current hundredth of a second is: %d\n", t.ti_hund);
printf("The current second is: %d\n", t.ti_sec);
t.ti_min++;
settime(&t);
return 0;
}