How to restart Mac OS with C ++

Possible duplicate:
Restart Mac OS X shamelessly with a C ++ call?

All,

I am trying to restart Mac from my code. I do not find such a thing on the Internet. Has anyone done this?

+3
source share
1 answer

On UNIX-like systems, this should work:

system("shutdown -r now");
+2
source

All Articles