NASM Coding: Basics - Examples

More info on the

_exit()
syscall in C:

Name:
_exit()
System call or function: System Call Links: Online Manual | Course Packet
What it does: lets the kernel terminate the process.
What libraries you must include:
#include <unistd.h> // Defines _exit().
Syntax:
void _exit (int status);
Description of arguments:
status
: the status with which we want to exit the program
What type it returns:
void
On success: – This function doesn't return anything –
On failure: – This function doesn't return anything –
Quick example:
_exit (0); // Success!