Introducing Radical.sh

Forget Code launches a powerful code generator for building API's

_Exit - Exit program without using exit() function in C

Exit Program without using exit() function:
There was a special function called _Exit(0) in-order to terminate the current process suspiciously.
The _Exit function terminates without calling the functions registered with the atexit function, and may or may not perform the other actions listed. Both functions make the low-order eight bits of the status argument available to a parent process which has called a wait-family function.


Syntax:
int _Exit(int return_code);


//Exit Program without using exit() function
#include <stdlib.h>
#include <stdio.h>

int main()
{
  int a=-1;
//printf("Exit Program without using exit() function");
    if(a<0)
    {
        _Exit(0);
    }

    return 0;
}