programming-examples/c/Basic/C Program to Shutdown or Turn Off the Computer in Linux.c

10 lines
155 B
C
Raw Normal View History

2019-11-18 14:44:36 +01:00
/*
* C Program to Shutdown or Turn Off the Computer in Linux.
*/
#include <stdio.h>
int main()
{
system("shutdown -P now");
return 0;
}