X-Git-Url: https://pd.if.org/git/?p=pdclib.old;a=blobdiff_plain;f=platform%2Fgandr%2Ffunctions%2F_PDCLIB%2F_PDCLIB_Exit.c;fp=platform%2Fgandr%2Ffunctions%2F_PDCLIB%2F_PDCLIB_Exit.c;h=b0178c21414c22fc36f1bde8d0a8338e04c3b461;hp=0000000000000000000000000000000000000000;hb=4ee48c2e350472aa6832594409bbdcf87c0ade54;hpb=ad5b4430336998c5117621106beb00e3375d1d55 diff --git a/platform/gandr/functions/_PDCLIB/_PDCLIB_Exit.c b/platform/gandr/functions/_PDCLIB/_PDCLIB_Exit.c new file mode 100644 index 0000000..b0178c2 --- /dev/null +++ b/platform/gandr/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 ) +{ + for(;;); +} + +#endif + +#ifdef TEST +#include <_PDCLIB_test.h> + +int main( void ) +{ + int UNEXPECTED_RETURN = 0; + _PDCLIB_Exit( 0 ); + TESTCASE( UNEXPECTED_RETURN ); + return TEST_RESULTS; +} + +#endif