There's nothing in C itself; you will have to use a platform-specific system call. Trouble is, you haven't said what platform.........