shithub: riscv

ref: 1d0f8a7e512e5abfea9c5d2fdf2fb4c05efc720b
dir: /sys/src/libc/port/exits.c/

View raw version
#include <u.h>
#include <libc.h>

void (*_onexit)(void);

#pragma profile off

void
exits(char *s)
{
	if(_onexit != nil) (*_onexit)();
	_exits(s);
}