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-15 12:59:38 +01:00
/*
* C Program to Shutdown or Turn Off the Computer in Linux.
*/
#include <stdio.h>
int main()
{
system("shutdown -P now");
return 0;
}