42-archive/42sh/42shelltest-tmp/support/exit-with-status
2017-03-18 01:30:28 +01:00
..
description 42shelltester 2017-03-18 01:30:28 +01:00
main.c 42shelltester 2017-03-18 01:30:28 +01:00
Makefile 42shelltester 2017-03-18 01:30:28 +01:00
README.md 42shelltester 2017-03-18 01:30:28 +01:00

./exit_with_status

A binary that immediately exits with the status given as first argument.

#include <stdlib.h>

int	main(int argc, char **argv)
{
	(void)argc;
	if (argc == 2)
		return (atoi(argv[1]));
	return (0);
}