Suresh R
Suresh R answered question
#include<stdlib.h>
#include<stdio.h>
#include<memory.h>
#include<time.h>
#include<ctype.h>
#include<unistd.h>
#include<linux/reboot.h>
int restart(int delay);
int main(void);
int shut(int delay)
{
sleep(delay);   
  return shut(LINUX_REBOOT_CMD_POWER_OFF);
}
int main(void)

    int I=0; 
    printf("shutdowning...");   
  fflush(stdout);     
     
shut(0);   
   
}  … Read more