shithub: riscv

ref: f059563b9d53d3e63e2d580ed61868153f24c481
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);
}