X-Git-Url: https://pd.if.org/git/?a=blobdiff_plain;f=platform%2Fexample%2Ffunctions%2F_PDCLIB%2F_PDCLIB_Exit.c;fp=platform%2Fexample%2Ffunctions%2F_PDCLIB%2F_PDCLIB_Exit.c;h=2bfc8c90623057182779167bb03df4b3ec92abb3;hb=1cc4363093c919f79eafac209bb5c41548d3f88f;hp=0000000000000000000000000000000000000000;hpb=5155ca96295a12b4857fc0e6a9629cc43a9a85fa;p=pdclib diff --git a/platform/example/functions/_PDCLIB/_PDCLIB_Exit.c b/platform/example/functions/_PDCLIB/_PDCLIB_Exit.c new file mode 100644 index 0000000..2bfc8c9 --- /dev/null +++ b/platform/example/functions/_PDCLIB/_PDCLIB_Exit.c @@ -0,0 +1,36 @@ +/* $Id$ */ + +/* _PDCLIB_exit( int ) + + This file is part of the Public Domain C Library (PDCLib). + Permission is granted to use, modify, and / or redistribute at will. +*/ + +/* This is a stub implementation of _PDCLIB_Exit +*/ + +#include + +#ifndef REGTEST +#include <_PDCLIB_glue.h> +#include + +void _PDCLIB_Exit( int status ) +{ + errno = ENOTSUP; +} + +#endif + +#ifdef TEST +#include <_PDCLIB_test.h> + +int main( void ) +{ + int UNEXPECTED_RETURN = 0; + _PDCLIB_Exit( 0 ); + TESTCASE( UNEXPECTED_RETURN ); + return TEST_RESULTS; +} + +#endif