From: solar Date: Sun, 23 Nov 2003 18:39:53 +0000 (+0000) Subject: Added template implementation files. X-Git-Tag: OLD~27 X-Git-Url: https://pd.if.org/git/?p=pdclib;a=commitdiff_plain;h=34893ecc2200dc7017c36a54cb6c5f4c2378b5ec Added template implementation files. --- diff --git a/functions/complex/cabs.c b/functions/complex/cabs.c new file mode 100644 index 0000000..a471fda --- /dev/null +++ b/functions/complex/cabs.c @@ -0,0 +1,23 @@ +// ---------------------------------------------------------------------------- +// $Id$ +// ---------------------------------------------------------------------------- +// Public Domain C Library - http://pdclib.sourceforge.net +// This code is Public Domain. Use, modify, and redistribute at will. +// ---------------------------------------------------------------------------- + +// ---------------------------------------------------------------------------- +// C++ + +double abs( double _Complex x ) { /* TODO */ }; +float abs( float _Complex x ) { /* TODO */ }; +long double abs( long double _Complex x ) { /* TODO */ }; +double fabs( double _Complex x ) { /* TODO */ }; +float fabs( float _Complex x ) { /* TODO */ }; +long double fabs( long double _Complex x ) { /* TODO */ }; + +// ---------------------------------------------------------------------------- +// Standard C + +double cabs( double _Complex x ) { /* TODO */ }; +float cabsf( float _Complex x ) { /* TODO */ }; +long double cabsl( long double _Complex x ) { /* TODO */ }; diff --git a/functions/complex/cacos.c b/functions/complex/cacos.c new file mode 100644 index 0000000..0ec47af --- /dev/null +++ b/functions/complex/cacos.c @@ -0,0 +1,20 @@ +// ---------------------------------------------------------------------------- +// $Id$ +// ---------------------------------------------------------------------------- +// Public Domain C Library - http://pdclib.sourceforge.net +// This code is Public Domain. Use, modify, and redistribute at will. +// ---------------------------------------------------------------------------- + +// ---------------------------------------------------------------------------- +// C++ + +double _Complex acos( double _Complex x ) { /* TODO */ }; +float _Complex acos( float _Complex x ) { /* TODO */ }; +long double _Complex acos( long double _Complex x ) { /* TODO */ }; + +// ---------------------------------------------------------------------------- +// Standard C + +double _Complex cacos( double _Complex x ) { /* TODO */ }; +float _Complex cacosf( float _Complex x ) { /* TODO */ }; +long double _Complex cacosl( long double _Complex x ) { /* TODO */ }; diff --git a/functions/complex/cacosh.c b/functions/complex/cacosh.c new file mode 100644 index 0000000..53ef8a1 --- /dev/null +++ b/functions/complex/cacosh.c @@ -0,0 +1,20 @@ +// ---------------------------------------------------------------------------- +// $Id$ +// ---------------------------------------------------------------------------- +// Public Domain C Library - http://pdclib.sourceforge.net +// This code is Public Domain. Use, modify, and redistribute at will. +// ---------------------------------------------------------------------------- + +// ---------------------------------------------------------------------------- +// C++ + +double _Complex acosh( double _Complex x ) { /* TODO */ }; +float _Complex acosh( float _Complex x ) { /* TODO */ }; +long double _Complex acosh( long double _Complex x ) { /* TODO */ }; + +// ---------------------------------------------------------------------------- +// Standard C + +double _Complex cacosh( double _Complex x ) { /* TODO */ }; +float _Complex cacoshf( float _Complex x ) { /* TODO */ }; +long double _Complex cacoshl( long double _Complex x ) { /* TODO */ }; diff --git a/functions/complex/carg.c b/functions/complex/carg.c new file mode 100644 index 0000000..b4160dd --- /dev/null +++ b/functions/complex/carg.c @@ -0,0 +1,22 @@ +// ---------------------------------------------------------------------------- +// $Id$ +// ---------------------------------------------------------------------------- +// Public Domain C Library - http://pdclib.sourceforge.net +// This code is Public Domain. Use, modify, and redistribute at will. +// ---------------------------------------------------------------------------- + +// ---------------------------------------------------------------------------- +// C++ + +double arg( double _Complex x ) { /* TODO */ }; +float arg( float _Complex x ) { /* TODO */ }; +long double arg( long double _Complex x ) { /* TODO */ }; +float carg( float _Complex x ) { /* TODO */ }; +long double carg( long double _Complex x ) { /* TODO */ }; + +// ---------------------------------------------------------------------------- +// Standard C + +double carg( double _Complex x ) { /* TODO */ }; +float cargf( float _Complex x ) { /* TODO */ }; +long double cargl( long double _Complex x ) { /* TODO */ }; diff --git a/functions/complex/casin.c b/functions/complex/casin.c new file mode 100644 index 0000000..3b6cd54 --- /dev/null +++ b/functions/complex/casin.c @@ -0,0 +1,20 @@ +// ---------------------------------------------------------------------------- +// $Id$ +// ---------------------------------------------------------------------------- +// Public Domain C Library - http://pdclib.sourceforge.net +// This code is Public Domain. Use, modify, and redistribute at will. +// ---------------------------------------------------------------------------- + +// ---------------------------------------------------------------------------- +// C++ + +double _Complex asin( double _Complex x ) { /* TODO */ }; +float _Complex asin( float _Complex x ) { /* TODO */ }; +long double _Complex asin( long double _Complex x ) { /* TODO */ }; + +// ---------------------------------------------------------------------------- +// Standard C + +double _Complex casin( double _Complex x ) { /* TODO */ }; +float _Complex casinf( float _Complex x ) { /* TODO */ }; +long double _Complex casinl( long double _Complex x ) { /* TODO */ }; diff --git a/functions/complex/casinh.c b/functions/complex/casinh.c new file mode 100644 index 0000000..762b025 --- /dev/null +++ b/functions/complex/casinh.c @@ -0,0 +1,20 @@ +// ---------------------------------------------------------------------------- +// $Id$ +// ---------------------------------------------------------------------------- +// Public Domain C Library - http://pdclib.sourceforge.net +// This code is Public Domain. Use, modify, and redistribute at will. +// ---------------------------------------------------------------------------- + +// ---------------------------------------------------------------------------- +// C++ + +double _Complex asinh( double _Complex x ) { /* TODO */ }; +float _Complex asinh( float _Complex x ) { /* TODO */ }; +long double _Complex asinh( long double _Complex x ) { /* TODO */ }; + +// ---------------------------------------------------------------------------- +// Standard C + +double _Complex casinh( double _Complex x ) { /* TODO */ }; +float _Complex casinhf( float _Complex x ) { /* TODO */ }; +long double _Complex casinhl( long double _Complex x ) { /* TODO */ }; diff --git a/functions/complex/catan.c b/functions/complex/catan.c new file mode 100644 index 0000000..310e6fd --- /dev/null +++ b/functions/complex/catan.c @@ -0,0 +1,20 @@ +// ---------------------------------------------------------------------------- +// $Id$ +// ---------------------------------------------------------------------------- +// Public Domain C Library - http://pdclib.sourceforge.net +// This code is Public Domain. Use, modify, and redistribute at will. +// ---------------------------------------------------------------------------- + +// ---------------------------------------------------------------------------- +// C++ + +double _Complex atan( double _Complex x ) { /* TODO */ }; +float _Complex atan( float _Complex x ) { /* TODO */ }; +long double _Complex atan( long double _Complex x ) { /* TODO */ }; + +// ---------------------------------------------------------------------------- +// Standard C + +double _Complex catan( double _Complex x ) { /* TODO */ }; +float _Complex catanf( float _Complex x ) { /* TODO */ }; +long double _Complex catanl( long double _Complex x ) { /* TODO */ }; diff --git a/functions/complex/catanh.c b/functions/complex/catanh.c new file mode 100644 index 0000000..692a996 --- /dev/null +++ b/functions/complex/catanh.c @@ -0,0 +1,20 @@ +// ---------------------------------------------------------------------------- +// $Id$ +// ---------------------------------------------------------------------------- +// Public Domain C Library - http://pdclib.sourceforge.net +// This code is Public Domain. Use, modify, and redistribute at will. +// ---------------------------------------------------------------------------- + +// ---------------------------------------------------------------------------- +// C++ + +double _Complex atanh( double _Complex x ) { /* TODO */ }; +float _Complex atanh( float _Complex x ) { /* TODO */ }; +long double _Complex atanh( long double _Complex x ) { /* TODO */ }; + +// ---------------------------------------------------------------------------- +// Standard C + +double _Complex catanh( double _Complex x ) { /* TODO */ }; +float _Complex catanhf( float _Complex x ) { /* TODO */ }; +long double _Complex catanhl( long double _Complex x ) { /* TODO */ }; diff --git a/functions/complex/cconj.c b/functions/complex/cconj.c new file mode 100644 index 0000000..c9946ee --- /dev/null +++ b/functions/complex/cconj.c @@ -0,0 +1,19 @@ +// ---------------------------------------------------------------------------- +// $Id$ +// ---------------------------------------------------------------------------- +// Public Domain C Library - http://pdclib.sourceforge.net +// This code is Public Domain. Use, modify, and redistribute at will. +// ---------------------------------------------------------------------------- + +// ---------------------------------------------------------------------------- +// C++ + +float _Complex conj( float _Complex x ) { /* TODO */ }; +long double _Complex conj( long double _Complex x ) { /* TODO */ }; + +// ---------------------------------------------------------------------------- +// Standard C + +double _Complex conj( double _Complex x ) { /* TODO */ }; +float _Complex conjf( float _Complex x ) { /* TODO */ }; +long double _Complex conjl( long double _Complex x ) { /* TODO */ }; diff --git a/functions/complex/ccos.c b/functions/complex/ccos.c new file mode 100644 index 0000000..b7b22ac --- /dev/null +++ b/functions/complex/ccos.c @@ -0,0 +1,20 @@ +// ---------------------------------------------------------------------------- +// $Id$ +// ---------------------------------------------------------------------------- +// Public Domain C Library - http://pdclib.sourceforge.net +// This code is Public Domain. Use, modify, and redistribute at will. +// ---------------------------------------------------------------------------- + +// ---------------------------------------------------------------------------- +// C++ + +double _Complex cos( double _Complex x ) { /* TODO */ }; +float _Complex cos( float _Complex x ) { /* TODO */ }; +long double _Complex cos( long double _Complex x ) { /* TODO */ }; + +// ---------------------------------------------------------------------------- +// Standard C + +double _Complex ccos( double _Complex x ) { /* TODO */ }; +float _Complex ccosf( float _Complex x ) { /* TODO */ }; +long double _Complex ccosl( long double _Complex x ) { /* TODO */ }; diff --git a/functions/complex/ccosh.c b/functions/complex/ccosh.c new file mode 100644 index 0000000..66bb47b --- /dev/null +++ b/functions/complex/ccosh.c @@ -0,0 +1,20 @@ +// ---------------------------------------------------------------------------- +// $Id$ +// ---------------------------------------------------------------------------- +// Public Domain C Library - http://pdclib.sourceforge.net +// This code is Public Domain. Use, modify, and redistribute at will. +// ---------------------------------------------------------------------------- + +// ---------------------------------------------------------------------------- +// C++ + +double _Complex cosh( double _Complex x ) { /* TODO */ }; +float _Complex cosh( float _Complex x ) { /* TODO */ }; +long double _Complex cosh( long double _Complex x ) { /* TODO */ }; + +// ---------------------------------------------------------------------------- +// Standard C + +double _Complex ccosh( double _Complex x ) { /* TODO */ }; +float _Complex ccoshf( float _Complex x ) { /* TODO */ }; +long double _Complex ccoshl( long double _Complex x ) { /* TODO */ }; diff --git a/functions/complex/cexp.c b/functions/complex/cexp.c new file mode 100644 index 0000000..ed1ee13 --- /dev/null +++ b/functions/complex/cexp.c @@ -0,0 +1,21 @@ +// ---------------------------------------------------------------------------- +// $Id$ +// ---------------------------------------------------------------------------- +// Public Domain C Library - http://pdclib.sourceforge.net +// This code is Public Domain. Use, modify, and redistribute at will. +// ---------------------------------------------------------------------------- + +// ---------------------------------------------------------------------------- +// C++ + +double _Complex exp( double _Complex x ) { /* TODO */ }; +float _Complex exp( float _Complex x ) { /* TODO */ }; +long double _Complex exp( long double _Complex x ) { /* TODO */ }; + +// ---------------------------------------------------------------------------- +// Standard C + +double _Complex cexp( double _Complex x ) { /* TODO */ }; +float _Complex cexpf( float _Complex x ) { /* TODO */ }; +long double _Complex cexpl( long double _Complex x ) { /* TODO */ }; + diff --git a/functions/complex/cimag.c b/functions/complex/cimag.c new file mode 100644 index 0000000..b601a4c --- /dev/null +++ b/functions/complex/cimag.c @@ -0,0 +1,22 @@ +// ---------------------------------------------------------------------------- +// $Id$ +// ---------------------------------------------------------------------------- +// Public Domain C Library - http://pdclib.sourceforge.net +// This code is Public Domain. Use, modify, and redistribute at will. +// ---------------------------------------------------------------------------- + +// ---------------------------------------------------------------------------- +// C++ + +double imag( double _Complex x ) { /* TODO */ }; +float imag( float _Complex x ) { /* TODO */ }; +long double imag( long double _Complex x ) { /* TODO */ }; +float cimag( float _Complex x ) { /* TODO */ }; +long double cimag( long double _Complex x ) { /* TODO */ }; + +// ---------------------------------------------------------------------------- +// Standard C + +double cimag( double _Complex x ) { /* TODO */ }; +float cimagf( float _Complex x ) { /* TODO */ }; +long double cimagl( long double _Complex x ) { /* TODO */ }; diff --git a/functions/complex/clog.c b/functions/complex/clog.c new file mode 100644 index 0000000..74c6e9c --- /dev/null +++ b/functions/complex/clog.c @@ -0,0 +1,20 @@ +// ---------------------------------------------------------------------------- +// $Id$ +// ---------------------------------------------------------------------------- +// Public Domain C Library - http://pdclib.sourceforge.net +// This code is Public Domain. Use, modify, and redistribute at will. +// ---------------------------------------------------------------------------- + +// ---------------------------------------------------------------------------- +// C++ + +double _Complex log( double _Complex x ) { /* TODO */ }; +float _Complex log( float _Complex x ) { /* TODO */ }; +long double _Complex log( long double _Complex x ) { /* TODO */ }; + +// ---------------------------------------------------------------------------- +// Standard C + +double _Complex clog( double _Complex x ) { /* TODO */ }; +float _Complex clogf( float _Complex x ) { /* TODO */ }; +long double _Complex clogl( long double _Complex x ) { /* TODO */ }; diff --git a/functions/complex/cpow.c b/functions/complex/cpow.c new file mode 100644 index 0000000..54089df --- /dev/null +++ b/functions/complex/cpow.c @@ -0,0 +1,20 @@ +// ---------------------------------------------------------------------------- +// $Id$ +// ---------------------------------------------------------------------------- +// Public Domain C Library - http://pdclib.sourceforge.net +// This code is Public Domain. Use, modify, and redistribute at will. +// ---------------------------------------------------------------------------- + +// ---------------------------------------------------------------------------- +// C++ + +double _Complex pow( double _Complex x, double _Complex y ) { /* TODO */ }; +float _Complex pow( float _Complex x, float _Complex y ) { /* TODO */ }; +long double _Complex pow( long double _Complex x, long double _Complex y ) { /* TODO */ }; + +// ---------------------------------------------------------------------------- +// Standard C + +double _Complex cpow( double _Complex x, double _Complex y ) { /* TODO */ }; +float _Complex cpowf( float _Complex x, float _Complex y ) { /* TODO */ }; +long double _Complex cpowl( long double _Complex x, long double _Complex y ) { /* TODO */ }; diff --git a/functions/complex/cproj.c b/functions/complex/cproj.c new file mode 100644 index 0000000..61b85bf --- /dev/null +++ b/functions/complex/cproj.c @@ -0,0 +1,19 @@ +// ---------------------------------------------------------------------------- +// $Id$ +// ---------------------------------------------------------------------------- +// Public Domain C Library - http://pdclib.sourceforge.net +// This code is Public Domain. Use, modify, and redistribute at will. +// ---------------------------------------------------------------------------- + +// ---------------------------------------------------------------------------- +// C++ + +float _Complex cproj( float _Complex x ) { /* TODO */ }; +long double _Complex cproj( long double _Complex x ) { /* TODO */ }; + +// ---------------------------------------------------------------------------- +// Standard C + +double _Complex cproj( double _Complex x ) { /* TODO */ }; +float _Complex cprojf( float _Complex x ) { /* TODO */ }; +long double _Complex cprojl( long double _Complex x ) { /* TODO */ }; diff --git a/functions/complex/creal.c b/functions/complex/creal.c new file mode 100644 index 0000000..dae0f03 --- /dev/null +++ b/functions/complex/creal.c @@ -0,0 +1,22 @@ +// ---------------------------------------------------------------------------- +// $Id$ +// ---------------------------------------------------------------------------- +// Public Domain C Library - http://pdclib.sourceforge.net +// This code is Public Domain. Use, modify, and redistribute at will. +// ---------------------------------------------------------------------------- + +// ---------------------------------------------------------------------------- +// C++ + +double real( double _Complex x ) { /* TODO */ }; +float real( float _Complex x ) { /* TODO */ }; +long double real( long double _Complex x ) { /* TODO */ }; +float creal( float _Complex x ) { /* TODO */ }; +long double creal( long double _Complex x ) { /* TODO */ }; + +// ---------------------------------------------------------------------------- +// Standard C + +double creal( double _Complex x ) { /* TODO */ }; +float crealf( float _Complex x ) { /* TODO */ }; +long double creall( long double _Complex x ) { /* TODO */ }; diff --git a/functions/complex/csin.c b/functions/complex/csin.c new file mode 100644 index 0000000..7a5fe57 --- /dev/null +++ b/functions/complex/csin.c @@ -0,0 +1,20 @@ +// ---------------------------------------------------------------------------- +// $Id$ +// ---------------------------------------------------------------------------- +// Public Domain C Library - http://pdclib.sourceforge.net +// This code is Public Domain. Use, modify, and redistribute at will. +// ---------------------------------------------------------------------------- + +// ---------------------------------------------------------------------------- +// C++ + +double _Complex sin( double _Complex x ) { /* TODO */ }; +float _Complex sin( float _Complex x ) { /* TODO */ }; +long double _Complex sin( long double _Complex x ) { /* TODO */ }; + +// ---------------------------------------------------------------------------- +// Standard C + +double _Complex csin( double _Complex x ) { /* TODO */ }; +float _Complex csinf( float _Complex x ) { /* TODO */ }; +long double _Complex csinl( long double _Complex x ) { /* TODO */ }; diff --git a/functions/complex/csinh.c b/functions/complex/csinh.c new file mode 100644 index 0000000..eb92e85 --- /dev/null +++ b/functions/complex/csinh.c @@ -0,0 +1,20 @@ +// ---------------------------------------------------------------------------- +// $Id$ +// ---------------------------------------------------------------------------- +// Public Domain C Library - http://pdclib.sourceforge.net +// This code is Public Domain. Use, modify, and redistribute at will. +// ---------------------------------------------------------------------------- + +// ---------------------------------------------------------------------------- +// C++ + +double _Complex sinh( double _Complex x ) { /* TODO */ }; +float _Complex sinh( float _Complex x ) { /* TODO */ }; +long double _Complex sinh( long double _Complex x ) { /* TODO */ }; + +// ---------------------------------------------------------------------------- +// Standard C + +double _Complex csinh( double _Complex x ) { /* TODO */ }; +float _Complex csinhf( float _Complex x ) { /* TODO */ }; +long double _Complex csinhl( long double _Complex x ) { /* TODO */ }; diff --git a/functions/complex/csqrt.c b/functions/complex/csqrt.c new file mode 100644 index 0000000..6ac90b1 --- /dev/null +++ b/functions/complex/csqrt.c @@ -0,0 +1,20 @@ +// ---------------------------------------------------------------------------- +// $Id$ +// ---------------------------------------------------------------------------- +// Public Domain C Library - http://pdclib.sourceforge.net +// This code is Public Domain. Use, modify, and redistribute at will. +// ---------------------------------------------------------------------------- + +// ---------------------------------------------------------------------------- +// C++ + +double _Complex sqrt( double _Complex x ) { /* TODO */ }; +float _Complex sqrt( float _Complex x ) { /* TODO */ }; +long double _Complex sqrt( long double _Complex x ) { /* TODO */ }; + +// ---------------------------------------------------------------------------- +// Standard C + +double _Complex csqrt( double _Complex x ) { /* TODO */ }; +float _Complex csqrtf( float _Complex x ) { /* TODO */ }; +long double _Complex csqrtl( long double _Complex x ) { /* TODO */ }; diff --git a/functions/complex/ctan.c b/functions/complex/ctan.c new file mode 100644 index 0000000..d735cb8 --- /dev/null +++ b/functions/complex/ctan.c @@ -0,0 +1,20 @@ +// ---------------------------------------------------------------------------- +// $Id$ +// ---------------------------------------------------------------------------- +// Public Domain C Library - http://pdclib.sourceforge.net +// This code is Public Domain. Use, modify, and redistribute at will. +// ---------------------------------------------------------------------------- + +// ---------------------------------------------------------------------------- +// C++ + +double _Complex tan( double _Complex x ) { /* TODO */ }; +float _Complex tan( float _Complex x ) { /* TODO */ }; +long double _Complex tan( long double _Complex x ) { /* TODO */ }; + +// ---------------------------------------------------------------------------- +// Standard C + +double _Complex ctan( double _Complex x ) { /* TODO */ }; +float _Complex ctanf( float _Complex x ) { /* TODO */ }; +long double _Complex ctanl( long double _Complex x ) { /* TODO */ }; diff --git a/functions/complex/ctanh.c b/functions/complex/ctanh.c new file mode 100644 index 0000000..344dd22 --- /dev/null +++ b/functions/complex/ctanh.c @@ -0,0 +1,20 @@ +// ---------------------------------------------------------------------------- +// $Id$ +// ---------------------------------------------------------------------------- +// Public Domain C Library - http://pdclib.sourceforge.net +// This code is Public Domain. Use, modify, and redistribute at will. +// ---------------------------------------------------------------------------- + +// ---------------------------------------------------------------------------- +// C++ + +double _Complex tanh( double _Complex x ) { /* TODO */ }; +float _Complex tanh( float _Complex x ) { /* TODO */ }; +long double _Complex tanh( long double _Complex x ) { /* TODO */ }; + +// ---------------------------------------------------------------------------- +// Standard C + +double _Complex ctanh( double _Complex x ) { /* TODO */ }; +float _Complex ctanhf( float _Complex x ) { /* TODO */ }; +long double _Complex ctanhl( long double _Complex x ) { /* TODO */ }; diff --git a/functions/ctype.c b/functions/ctype.c new file mode 100644 index 0000000..14bdeda --- /dev/null +++ b/functions/ctype.c @@ -0,0 +1,21 @@ +// ---------------------------------------------------------------------------- +// $Id$ +// ---------------------------------------------------------------------------- +// Public Domain C Library - http://pdclib.sourceforge.net +// This code is Public Domain. Use, modify, and redistribute at will. +// ---------------------------------------------------------------------------- + +int isalnum( int c ) { /* TODO */ }; +int isalpha( int c ) { /* TODO */ }; +int isblank( int c ) { /* TODO */ }; +int iscntrl( int c ) { /* TODO */ }; +int isdigit( int c ) { /* TODO */ }; +int isgraph( int c ) { /* TODO */ }; +int islower( int c ) { /* TODO */ }; +int isprint( int c ) { /* TODO */ }; +int ispunct( int c ) { /* TODO */ }; +int isspace( int c ) { /* TODO */ }; +int isupper( int c ) { /* TODO */ }; +int isxdigit( int c ) { /* TODO */ }; +int tolower( int c ) { /* TODO */ }; +int toupper( int c ) { /* TODO */ }; diff --git a/functions/errno.c b/functions/errno.c new file mode 100644 index 0000000..1768b61 --- /dev/null +++ b/functions/errno.c @@ -0,0 +1,8 @@ +// ---------------------------------------------------------------------------- +// $Id$ +// ---------------------------------------------------------------------------- +// Public Domain C Library - http://pdclib.sourceforge.net +// This code is Public Domain. Use, modify, and redistribute at will. +// ---------------------------------------------------------------------------- + +int errno = 0; \ No newline at end of file diff --git a/functions/fenv.c b/functions/fenv.c new file mode 100644 index 0000000..89bc1b2 --- /dev/null +++ b/functions/fenv.c @@ -0,0 +1,20 @@ +// ---------------------------------------------------------------------------- +// $Id$ +// ---------------------------------------------------------------------------- +// Public Domain C Library - http://pdclib.sourceforge.net +// This code is Public Domain. Use, modify, and redistribute at will. +// ---------------------------------------------------------------------------- + +int feclearexcept( int exceptions ) { /* TODO */ }; +int fegetexceptflag( fexcept_t * flags, int exceptions ) { /* TODO */ }; +int feraiseexcept( int exceptions ) { /* TODO */ }; +int fesetexceptflag( const fexcept_t * flags, int exceptions ) { /* TODO */ }; +int fetestexcept( int exceptions ) { /* TODO */ }; + +int fegetround( void ) { /* TODO */ }; +int fesetround( int mode ) { /* TODO */ }; + +int fegetenv( fenv_t * environment ) { /* TODO */ }; +int feholdexcept( fenv_t * environment ) { /* TODO */ }; +int fesetenv( const fenv_t * environment ) { /* TODO */ }; +int feupdateenv( const fenv_t * environment ) { /* TODO */ }; diff --git a/functions/inttypes.c b/functions/inttypes.c new file mode 100644 index 0000000..d815cca --- /dev/null +++ b/functions/inttypes.c @@ -0,0 +1,23 @@ +// ---------------------------------------------------------------------------- +// $Id$ +// ---------------------------------------------------------------------------- +// Public Domain C Library - http://pdclib.sourceforge.net +// This code is Public Domain. Use, modify, and redistribute at will. +// ---------------------------------------------------------------------------- + +// ---------------------------------------------------------------------------- +// C++ + +intmax_t abs( intmax_t i ) { /* TODO */ }; +imaxdiv_t div( intmax_t numer, intmax_t denom ) { /* TODO */ }; + +// ---------------------------------------------------------------------------- +// Standard C + +intmax_t imaxabs( intmax_t i ) { /* TODO */ }; +imaxdiv_t imaxdiv( intmax_t numer, intmax_t denom ) { /* TODO */ }; + +intmax_t strtoimax( const char * restrict s, char * * restrict endptr, int base ) { /* TODO */ }; +uintmax_t strtoumax( const char * restrict s, char * * restrict endptr, int base ) { /* TODO */ }; +intmax_t wcstoimax( const wchar_t * restrict s, wchar_t * * restrict endptr, int base ) { /* TODO */ }; +uintmax_t wcstoumax( const wchar_t * restrict s, wchar_t * * restrict endptr, int base ) { /* TODO */ }; diff --git a/functions/locale.c b/functions/locale.c new file mode 100644 index 0000000..4dfe663 --- /dev/null +++ b/functions/locale.c @@ -0,0 +1,9 @@ +// ---------------------------------------------------------------------------- +// $Id$ +// ---------------------------------------------------------------------------- +// Public Domain C Library - http://pdclib.sourceforge.net +// This code is Public Domain. Use, modify, and redistribute at will. +// ---------------------------------------------------------------------------- + +struct lconv * localeconv( void ) { /* TODO */ }; +char * setlocale( int categories, const char * locale_name ) { /* TODO */ }; diff --git a/functions/math/abs.c b/functions/math/abs.c new file mode 100644 index 0000000..1cd660d --- /dev/null +++ b/functions/math/abs.c @@ -0,0 +1,29 @@ +// ---------------------------------------------------------------------------- +// $Id$ +// ---------------------------------------------------------------------------- +// Public Domain C Library - http://pdclib.sourceforge.net +// This code is Public Domain. Use, modify, and redistribute at will. +// ---------------------------------------------------------------------------- + +// ---------------------------------------------------------------------------- +// C++ + +double abs( double x ) { /* TODO */ }; +float abs( float x ) { /* TODO */ }; +long double abs( long double x ) { /* TODO */ }; +float fabs( float x ) { /* TODO */ }; +long double fabs( long double x ) { /* TODO */ }; + +long abs( long i ) { /* TODO */ }; +long long abs( long long i ) { /* TODO */ }; + +// ---------------------------------------------------------------------------- +// Standard C + +double fabs( double x ) { /* TODO */ }; +float fabsf( float x ) { /* TODO */ }; +long double fabsl( long double x ) { /* TODO */ }; + +int abs( int i ) { /* TODO */ }; +long long llabs( long long i ) { /* TODO */ }; +long labs( long i ) { /* TODO */ }; diff --git a/functions/math/acos.c b/functions/math/acos.c new file mode 100644 index 0000000..652fd43 --- /dev/null +++ b/functions/math/acos.c @@ -0,0 +1,19 @@ +// ---------------------------------------------------------------------------- +// $Id$ +// ---------------------------------------------------------------------------- +// Public Domain C Library - http://pdclib.sourceforge.net +// This code is Public Domain. Use, modify, and redistribute at will. +// ---------------------------------------------------------------------------- + +// ---------------------------------------------------------------------------- +// C++ + +float acos( float x ) { /* TODO */ }; +long double acos( long double x ) { /* TODO */ }; + +// ---------------------------------------------------------------------------- +// Standard C + +double acos( double x ) { /* TODO */ }; +float acosf( float x ) { /* TODO */ }; +long double acosl( long double x ) { /* TODO */ }; diff --git a/functions/math/acosh.c b/functions/math/acosh.c new file mode 100644 index 0000000..2cebe41 --- /dev/null +++ b/functions/math/acosh.c @@ -0,0 +1,19 @@ +// ---------------------------------------------------------------------------- +// $Id$ +// ---------------------------------------------------------------------------- +// Public Domain C Library - http://pdclib.sourceforge.net +// This code is Public Domain. Use, modify, and redistribute at will. +// ---------------------------------------------------------------------------- + +// ---------------------------------------------------------------------------- +// C++ + +float acosh( float x ) { /* TODO */ }; +long double acosh( long double x ) { /* TODO */ }; + +// ---------------------------------------------------------------------------- +// Standard C + +double acosh( double x ) { /* TODO */ }; +float acoshf( float x ) { /* TODO */ }; +long double acoshl( long double x ) { /* TODO */ }; diff --git a/functions/math/asin.c b/functions/math/asin.c new file mode 100644 index 0000000..a0de748 --- /dev/null +++ b/functions/math/asin.c @@ -0,0 +1,19 @@ +// ---------------------------------------------------------------------------- +// $Id$ +// ---------------------------------------------------------------------------- +// Public Domain C Library - http://pdclib.sourceforge.net +// This code is Public Domain. Use, modify, and redistribute at will. +// ---------------------------------------------------------------------------- + +// ---------------------------------------------------------------------------- +// C++ + +float asin( float x ) { /* TODO */ }; +long double asin( long double x ) { /* TODO */ }; + +// ---------------------------------------------------------------------------- +// Standard C + +double asin( double x ) { /* TODO */ }; +float asinf( float x ) { /* TODO */ }; +long double asinl( long double x ) { /* TODO */ }; diff --git a/functions/math/asinh.c b/functions/math/asinh.c new file mode 100644 index 0000000..9da4a4b --- /dev/null +++ b/functions/math/asinh.c @@ -0,0 +1,19 @@ +// ---------------------------------------------------------------------------- +// $Id$ +// ---------------------------------------------------------------------------- +// Public Domain C Library - http://pdclib.sourceforge.net +// This code is Public Domain. Use, modify, and redistribute at will. +// ---------------------------------------------------------------------------- + +// ---------------------------------------------------------------------------- +// C++ + +float asinh( float x ) { /* TODO */ }; +long double asinh( long double x ) { /* TODO */ }; + +// ---------------------------------------------------------------------------- +// Standard C + +double asinh( double x ) { /* TODO */ }; +float asinhf( float x ) { /* TODO */ }; +long double asinhl( long double x ) { /* TODO */ }; diff --git a/functions/math/atan.c b/functions/math/atan.c new file mode 100644 index 0000000..228c939 --- /dev/null +++ b/functions/math/atan.c @@ -0,0 +1,19 @@ +// ---------------------------------------------------------------------------- +// $Id$ +// ---------------------------------------------------------------------------- +// Public Domain C Library - http://pdclib.sourceforge.net +// This code is Public Domain. Use, modify, and redistribute at will. +// ---------------------------------------------------------------------------- + +// ---------------------------------------------------------------------------- +// C++ + +float atan( float x ) { /* TODO */ }; +long double atan( long double x ) { /* TODO */ }; + +// ---------------------------------------------------------------------------- +// Standard C + +double atan( double x ) { /* TODO */ }; +float atanf( float x ) { /* TODO */ }; +long double atanl( long double x ) { /* TODO */ }; diff --git a/functions/math/atan2.c b/functions/math/atan2.c new file mode 100644 index 0000000..540f7ea --- /dev/null +++ b/functions/math/atan2.c @@ -0,0 +1,19 @@ +// ---------------------------------------------------------------------------- +// $Id$ +// ---------------------------------------------------------------------------- +// Public Domain C Library - http://pdclib.sourceforge.net +// This code is Public Domain. Use, modify, and redistribute at will. +// ---------------------------------------------------------------------------- + +// ---------------------------------------------------------------------------- +// C++ + +float atan2( float y, float x ) { /* TODO */ }; +long double atan2( long double y, long double x ) { /* TODO */ }; + +// ---------------------------------------------------------------------------- +// Standard C + +double atan2( double y, double x ) { /* TODO */ }; +float atan2f( float y, float x ) { /* TODO */ }; +long double atan2l( long double y, long double x ) { /* TODO */ }; diff --git a/functions/math/atanh.c b/functions/math/atanh.c new file mode 100644 index 0000000..e0d7d34 --- /dev/null +++ b/functions/math/atanh.c @@ -0,0 +1,19 @@ +// ---------------------------------------------------------------------------- +// $Id$ +// ---------------------------------------------------------------------------- +// Public Domain C Library - http://pdclib.sourceforge.net +// This code is Public Domain. Use, modify, and redistribute at will. +// ---------------------------------------------------------------------------- + +// ---------------------------------------------------------------------------- +// C++ + +float atanh( float x ) { /* TODO */ }; +long double atanh( long double x ) { /* TODO */ }; + +// ---------------------------------------------------------------------------- +// Standard C + +double atanh( double x ) { /* TODO */ }; +float atanhf( float x ) { /* TODO */ }; +long double atanhl( long double x ) { /* TODO */ }; diff --git a/functions/math/cbrt.c b/functions/math/cbrt.c new file mode 100644 index 0000000..cf6d16b --- /dev/null +++ b/functions/math/cbrt.c @@ -0,0 +1,19 @@ +// ---------------------------------------------------------------------------- +// $Id$ +// ---------------------------------------------------------------------------- +// Public Domain C Library - http://pdclib.sourceforge.net +// This code is Public Domain. Use, modify, and redistribute at will. +// ---------------------------------------------------------------------------- + +// ---------------------------------------------------------------------------- +// C++ + +float cbrt( float x ) { /* TODO */ }; +long double cbrt( long double x ) { /* TODO */ }; + +// ---------------------------------------------------------------------------- +// Standard C + +double cbrt( double x ) { /* TODO */ }; +float cbrtf( float x ) { /* TODO */ }; +long double cbrtl( long double x ) { /* TODO */ }; diff --git a/functions/math/ceil.c b/functions/math/ceil.c new file mode 100644 index 0000000..11eb88f --- /dev/null +++ b/functions/math/ceil.c @@ -0,0 +1,19 @@ +// ---------------------------------------------------------------------------- +// $Id$ +// ---------------------------------------------------------------------------- +// Public Domain C Library - http://pdclib.sourceforge.net +// This code is Public Domain. Use, modify, and redistribute at will. +// ---------------------------------------------------------------------------- + +// ---------------------------------------------------------------------------- +// C++ + +float ceil( float x ) { /* TODO */ }; +long double ceil( long double x ) { /* TODO */ }; + +// ---------------------------------------------------------------------------- +// Standard C + +double ceil( double x ) { /* TODO */ }; +float ceilf( float x ) { /* TODO */ }; +long double ceill( long double x ) { /* TODO */ }; diff --git a/functions/math/copysign.c b/functions/math/copysign.c new file mode 100644 index 0000000..f22fcb7 --- /dev/null +++ b/functions/math/copysign.c @@ -0,0 +1,19 @@ +// ---------------------------------------------------------------------------- +// $Id$ +// ---------------------------------------------------------------------------- +// Public Domain C Library - http://pdclib.sourceforge.net +// This code is Public Domain. Use, modify, and redistribute at will. +// ---------------------------------------------------------------------------- + +// ---------------------------------------------------------------------------- +// C++ + +float copysign( float x, float y ) { /* TODO */ }; +long double copysign( long double x, long double y ) { /* TODO */ }; + +// ---------------------------------------------------------------------------- +// Standard C + +double copysign( double x, double y ) { /* TODO */ }; +float copysignf( float x, float y ) { /* TODO */ }; +long double copysignl( long double x, long double y ) { /* TODO */ }; diff --git a/functions/math/cos.c b/functions/math/cos.c new file mode 100644 index 0000000..3e3ce0d --- /dev/null +++ b/functions/math/cos.c @@ -0,0 +1,19 @@ +// ---------------------------------------------------------------------------- +// $Id$ +// ---------------------------------------------------------------------------- +// Public Domain C Library - http://pdclib.sourceforge.net +// This code is Public Domain. Use, modify, and redistribute at will. +// ---------------------------------------------------------------------------- + +// ---------------------------------------------------------------------------- +// C++ + +float cos( float x ) { /* TODO */ }; +long double cos( long double x ) { /* TODO */ }; + +// ---------------------------------------------------------------------------- +// Standard C + +double cos( double x ) { /* TODO */ }; +float cosf( float x ) { /* TODO */ }; +long double cosl( long double x ) { /* TODO */ }; diff --git a/functions/math/cosh.c b/functions/math/cosh.c new file mode 100644 index 0000000..4524820 --- /dev/null +++ b/functions/math/cosh.c @@ -0,0 +1,19 @@ +// ---------------------------------------------------------------------------- +// $Id$ +// ---------------------------------------------------------------------------- +// Public Domain C Library - http://pdclib.sourceforge.net +// This code is Public Domain. Use, modify, and redistribute at will. +// ---------------------------------------------------------------------------- + +// ---------------------------------------------------------------------------- +// C++ + +float cosh( float x ) { /* TODO */ }; +long double cosh( long double x ) { /* TODO */ }; + +// ---------------------------------------------------------------------------- +// Standard C + +double cosh( double x ) { /* TODO */ }; +float coshf( float x ) { /* TODO */ }; +long double coshl( long double x ) { /* TODO */ }; diff --git a/functions/math/erf.c b/functions/math/erf.c new file mode 100644 index 0000000..e73a09d --- /dev/null +++ b/functions/math/erf.c @@ -0,0 +1,26 @@ +// ---------------------------------------------------------------------------- +// $Id$ +// ---------------------------------------------------------------------------- +// Public Domain C Library - http://pdclib.sourceforge.net +// This code is Public Domain. Use, modify, and redistribute at will. +// ---------------------------------------------------------------------------- + +// ---------------------------------------------------------------------------- +// C++ + +float erf( float x ) { /* TODO */ }; +long double erf( long double x ) { /* TODO */ }; + +float erfc( float x ) { /* TODO */ }; +long double erfc( long double x ) { /* TODO */ }; + +// ---------------------------------------------------------------------------- +// Standard C + +double erf( double x ) { /* TODO */ }; +float erff( float x ) { /* TODO */ }; +long double erfl( long double x ) { /* TODO */ }; + +double erfc( double x ) { /* TODO */ }; +float erfcf( float x ) { /* TODO */ }; +long double erfcl( long double x ) { /* TODO */ }; diff --git a/functions/math/exp.c b/functions/math/exp.c new file mode 100644 index 0000000..19d35a5 --- /dev/null +++ b/functions/math/exp.c @@ -0,0 +1,47 @@ +// ---------------------------------------------------------------------------- +// $Id$ +// ---------------------------------------------------------------------------- +// Public Domain C Library - http://pdclib.sourceforge.net +// This code is Public Domain. Use, modify, and redistribute at will. +// ---------------------------------------------------------------------------- + +// ---------------------------------------------------------------------------- +// C++ + +float exp( float x ) { /* TODO */ }; +long double exp( long double x ) { /* TODO */ }; + +float exp2( float x ) { /* TODO */ }; +long double exp2( long double x ) { /* TODO */ }; + +float expm1( float x ) { /* TODO */ }; +long double expm1( long double x ) { /* TODO */ }; + +float frexp( float x, int * exponent ) { /* TODO */ }; +long double frexp( long double x, int * exponent ) { /* TODO */ }; + +float ldexp( float x, int exponent ) { /* TODO */ }; +long double ldexp( long double x, int exponent ) { /* TODO */ }; + +// ---------------------------------------------------------------------------- +// Standard C + +double exp( double x ) { /* TODO */ }; +float expf( float x ) { /* TODO */ }; +long double expl( long double x ) { /* TODO */ }; + +double exp2( double x ) { /* TODO */ }; +float exp2f( float x ) { /* TODO */ }; +long double exp2l( long double x ) { /* TODO */ }; + +double expm1( double x ) { /* TODO */ }; +float expm1f( float x ) { /* TODO */ }; +long double expm1l( long double x ) { /* TODO */ }; + +double frexp( double x, int * exp ) { /* TODO */ }; +float frexpf( float x, int * exp ) { /* TODO */ }; +long double frexpl( long double x, int * exp ) { /* TODO */ }; + +double ldexp( double x, int exp ) { /* TODO */ }; +float ldexpf( float x, int exp ) { /* TODO */ }; +long double ldexpl( long double x, int exp ) { /* TODO */ }; \ No newline at end of file diff --git a/functions/math/fdim.c b/functions/math/fdim.c new file mode 100644 index 0000000..9916763 --- /dev/null +++ b/functions/math/fdim.c @@ -0,0 +1,19 @@ +// ---------------------------------------------------------------------------- +// $Id$ +// ---------------------------------------------------------------------------- +// Public Domain C Library - http://pdclib.sourceforge.net +// This code is Public Domain. Use, modify, and redistribute at will. +// ---------------------------------------------------------------------------- + +// ---------------------------------------------------------------------------- +// C++ + +float fdim( float x, float y ) { /* TODO */ }; +long double fdim( long double x, long double y ) { /* TODO */ }; + +// ---------------------------------------------------------------------------- +// Standard C + +double fdim( double x, double y ) { /* TODO */ }; +float fdimf( float x, float y ) { /* TODO */ }; +long double fdiml( long double x, long double y ) { /* TODO */ }; diff --git a/functions/math/floor.c b/functions/math/floor.c new file mode 100644 index 0000000..30cc463 --- /dev/null +++ b/functions/math/floor.c @@ -0,0 +1,19 @@ +// ---------------------------------------------------------------------------- +// $Id$ +// ---------------------------------------------------------------------------- +// Public Domain C Library - http://pdclib.sourceforge.net +// This code is Public Domain. Use, modify, and redistribute at will. +// ---------------------------------------------------------------------------- + +// ---------------------------------------------------------------------------- +// C++ + +float floor( float x ) { /* TODO */ }; +long double floor( long double x ) { /* TODO */ }; + +// ---------------------------------------------------------------------------- +// Standard C + +double floor( double x ) { /* TODO */ }; +float floorf( float x ) { /* TODO */ }; +long double floorl( long double x ) { /* TODO */ }; diff --git a/functions/math/fma.c b/functions/math/fma.c new file mode 100644 index 0000000..626e9aa --- /dev/null +++ b/functions/math/fma.c @@ -0,0 +1,19 @@ +// ---------------------------------------------------------------------------- +// $Id$ +// ---------------------------------------------------------------------------- +// Public Domain C Library - http://pdclib.sourceforge.net +// This code is Public Domain. Use, modify, and redistribute at will. +// ---------------------------------------------------------------------------- + +// ---------------------------------------------------------------------------- +// C++ + +float fma( float x, float y, float z ) { /* TODO */ }; +long double fma( long double x, long double y, long double z ) { /* TODO */ }; + +// ---------------------------------------------------------------------------- +// Standard C + +double fma( double x, double y, double z ) { /* TODO */ }; +float fmaf( float x, float y, float z ) { /* TODO */ }; +long double fmal( long double x, long double y, long double z ) { /* TODO */ }; diff --git a/functions/math/fmax.c b/functions/math/fmax.c new file mode 100644 index 0000000..a775ae1 --- /dev/null +++ b/functions/math/fmax.c @@ -0,0 +1,19 @@ +// ---------------------------------------------------------------------------- +// $Id$ +// ---------------------------------------------------------------------------- +// Public Domain C Library - http://pdclib.sourceforge.net +// This code is Public Domain. Use, modify, and redistribute at will. +// ---------------------------------------------------------------------------- + +// ---------------------------------------------------------------------------- +// C++ + +float fmax( float x, float y ) { /* TODO */ }; +long double fmax( long double x, long double y ) { /* TODO */ }; + +// ---------------------------------------------------------------------------- +// Standard C + +double fmax( double x, double y ) { /* TODO */ }; +float fmaxf( float x, float y ) { /* TODO */ }; +long double fmaxl( long double x, long double y ) { /* TODO */ }; diff --git a/functions/math/fmin.c b/functions/math/fmin.c new file mode 100644 index 0000000..212370d --- /dev/null +++ b/functions/math/fmin.c @@ -0,0 +1,19 @@ +// ---------------------------------------------------------------------------- +// $Id$ +// ---------------------------------------------------------------------------- +// Public Domain C Library - http://pdclib.sourceforge.net +// This code is Public Domain. Use, modify, and redistribute at will. +// ---------------------------------------------------------------------------- + +// ---------------------------------------------------------------------------- +// C++ + +float fmin( float x, float y ) { /* TODO */ }; +long double fmin( long double x, long double y ) { /* TODO */ }; + +// ---------------------------------------------------------------------------- +// Standard C + +double fmin( double x, double y ) { /* TODO */ }; +float fminf( float x, float y ) { /* TODO */ }; +long double fminl( long double x, long double y ) { /* TODO */ }; diff --git a/functions/math/fpclassify.c b/functions/math/fpclassify.c new file mode 100644 index 0000000..e9ac003 --- /dev/null +++ b/functions/math/fpclassify.c @@ -0,0 +1,13 @@ +// ---------------------------------------------------------------------------- +// $Id$ +// ---------------------------------------------------------------------------- +// Public Domain C Library - http://pdclib.sourceforge.net +// This code is Public Domain. Use, modify, and redistribute at will. +// ---------------------------------------------------------------------------- + +// ---------------------------------------------------------------------------- +// C++ + +int fpclassify( float x ) { /* TODO */ }; +int fpclassify( double x ) { /* TODO */ }; +int fpclassify( long double x ) { /* TODO */ }; diff --git a/functions/math/gamma.c b/functions/math/gamma.c new file mode 100644 index 0000000..1f032db --- /dev/null +++ b/functions/math/gamma.c @@ -0,0 +1,26 @@ +// ---------------------------------------------------------------------------- +// $Id$ +// ---------------------------------------------------------------------------- +// Public Domain C Library - http://pdclib.sourceforge.net +// This code is Public Domain. Use, modify, and redistribute at will. +// ---------------------------------------------------------------------------- + +// ---------------------------------------------------------------------------- +// C++ + +float lgamma( float x ) { /* TODO */ }; +long double lgamma( long double x ) { /* TODO */ }; + +float tgamma( float x ) { /* TODO */ }; +long double tgamma( long double x ) { /* TODO */ }; + +// ---------------------------------------------------------------------------- +// Standard C + +double lgamma( double x ) { /* TODO */ }; +float lgammaf( float x ) { /* TODO */ }; +long double lgammal( long double x ) { /* TODO */ }; + +double tgamma( double x ) { /* TODO */ }; +float tgammaf( float x ) { /* TODO */ }; +long double tgammal( long double x ) { /* TODO */ }; diff --git a/functions/math/hypot.c b/functions/math/hypot.c new file mode 100644 index 0000000..449242d --- /dev/null +++ b/functions/math/hypot.c @@ -0,0 +1,19 @@ +// ---------------------------------------------------------------------------- +// $Id$ +// ---------------------------------------------------------------------------- +// Public Domain C Library - http://pdclib.sourceforge.net +// This code is Public Domain. Use, modify, and redistribute at will. +// ---------------------------------------------------------------------------- + +// ---------------------------------------------------------------------------- +// C++ + +float hypot( float x, float y ) { /* TODO */ }; +long double hypot( long double x, long double y ) { /* TODO */ }; + +// ---------------------------------------------------------------------------- +// Standard C + +double hypot( double x, double y ) { /* TODO */ }; +float hypotf( float x, float y ) { /* TODO */ }; +long double hypotl( long double x, long double y ) { /* TODO */ }; diff --git a/functions/math/isfinite.c b/functions/math/isfinite.c new file mode 100644 index 0000000..d9f0a6c --- /dev/null +++ b/functions/math/isfinite.c @@ -0,0 +1,13 @@ +// ---------------------------------------------------------------------------- +// $Id$ +// ---------------------------------------------------------------------------- +// Public Domain C Library - http://pdclib.sourceforge.net +// This code is Public Domain. Use, modify, and redistribute at will. +// ---------------------------------------------------------------------------- + +// ---------------------------------------------------------------------------- +// C++ + +bool isfinite( float x ) { /* TODO */ }; +bool isfinite( double x ) { /* TODO */ }; +bool isfinite( long double x ) { /* TODO */ }; diff --git a/functions/math/isgreater.c b/functions/math/isgreater.c new file mode 100644 index 0000000..d9ffdd5 --- /dev/null +++ b/functions/math/isgreater.c @@ -0,0 +1,13 @@ +// ---------------------------------------------------------------------------- +// $Id$ +// ---------------------------------------------------------------------------- +// Public Domain C Library - http://pdclib.sourceforge.net +// This code is Public Domain. Use, modify, and redistribute at will. +// ---------------------------------------------------------------------------- + +// ---------------------------------------------------------------------------- +// C++ + +bool isgreater( float x, float y ) { /* TODO */ }; +bool isgreater( double x, double y ) { /* TODO */ }; +bool isgreater( long double x, long double y ) { /* TODO */ }; diff --git a/functions/math/isgreaterequal.c b/functions/math/isgreaterequal.c new file mode 100644 index 0000000..d16cea7 --- /dev/null +++ b/functions/math/isgreaterequal.c @@ -0,0 +1,13 @@ +// ---------------------------------------------------------------------------- +// $Id$ +// ---------------------------------------------------------------------------- +// Public Domain C Library - http://pdclib.sourceforge.net +// This code is Public Domain. Use, modify, and redistribute at will. +// ---------------------------------------------------------------------------- + +// ---------------------------------------------------------------------------- +// C++ + +bool isgreaterequal( float x, float y ) { /* TODO */ }; +bool isgreaterequal( double x, double y ) { /* TODO */ }; +bool isgreaterequal( long double x, long double y ) { /* TODO */ }; diff --git a/functions/math/isinf.c b/functions/math/isinf.c new file mode 100644 index 0000000..281bdfd --- /dev/null +++ b/functions/math/isinf.c @@ -0,0 +1,13 @@ +// ---------------------------------------------------------------------------- +// $Id$ +// ---------------------------------------------------------------------------- +// Public Domain C Library - http://pdclib.sourceforge.net +// This code is Public Domain. Use, modify, and redistribute at will. +// ---------------------------------------------------------------------------- + +// ---------------------------------------------------------------------------- +// C++ + +bool isinf( float x ) { /* TODO */ }; +bool isinf( double x ) { /* TODO */ }; +bool isinf( long double x ) { /* TODO */ }; diff --git a/functions/math/isless.c b/functions/math/isless.c new file mode 100644 index 0000000..5ecfd1d --- /dev/null +++ b/functions/math/isless.c @@ -0,0 +1,13 @@ +// ---------------------------------------------------------------------------- +// $Id$ +// ---------------------------------------------------------------------------- +// Public Domain C Library - http://pdclib.sourceforge.net +// This code is Public Domain. Use, modify, and redistribute at will. +// ---------------------------------------------------------------------------- + +// ---------------------------------------------------------------------------- +// C++ + +bool isless( float x, float y ) { /* TODO */ }; +bool isless( double x, double y ) { /* TODO */ }; +bool isless( long double x, long double y ) { /* TODO */ }; diff --git a/functions/math/islessequal.c b/functions/math/islessequal.c new file mode 100644 index 0000000..b3e79db --- /dev/null +++ b/functions/math/islessequal.c @@ -0,0 +1,13 @@ +// ---------------------------------------------------------------------------- +// $Id$ +// ---------------------------------------------------------------------------- +// Public Domain C Library - http://pdclib.sourceforge.net +// This code is Public Domain. Use, modify, and redistribute at will. +// ---------------------------------------------------------------------------- + +// ---------------------------------------------------------------------------- +// C++ + +bool islessequal( float x, float y ) { /* TODO */ }; +bool islessequal( double x, double y ) { /* TODO */ }; +bool islessequal( long double x, long double y ) { /* TODO */ }; diff --git a/functions/math/islessgreater.c b/functions/math/islessgreater.c new file mode 100644 index 0000000..6340fe6 --- /dev/null +++ b/functions/math/islessgreater.c @@ -0,0 +1,13 @@ +// ---------------------------------------------------------------------------- +// $Id$ +// ---------------------------------------------------------------------------- +// Public Domain C Library - http://pdclib.sourceforge.net +// This code is Public Domain. Use, modify, and redistribute at will. +// ---------------------------------------------------------------------------- + +// ---------------------------------------------------------------------------- +// C++ + +bool islessgreater( float x, float y ) { /* TODO */ }; +bool islessgreater( double x, double y ) { /* TODO */ }; +bool islessgreater( long double x, long double y ) { /* TODO */ }; diff --git a/functions/math/isnan.c b/functions/math/isnan.c new file mode 100644 index 0000000..f18be9d --- /dev/null +++ b/functions/math/isnan.c @@ -0,0 +1,13 @@ +// ---------------------------------------------------------------------------- +// $Id$ +// ---------------------------------------------------------------------------- +// Public Domain C Library - http://pdclib.sourceforge.net +// This code is Public Domain. Use, modify, and redistribute at will. +// ---------------------------------------------------------------------------- + +// ---------------------------------------------------------------------------- +// C++ + +bool isnan( float x ) { /* TODO */ }; +bool isnan( double x ) { /* TODO */ }; +bool isnan( long double x ) { /* TODO */ }; diff --git a/functions/math/isnormal.c b/functions/math/isnormal.c new file mode 100644 index 0000000..e12399e --- /dev/null +++ b/functions/math/isnormal.c @@ -0,0 +1,13 @@ +// ---------------------------------------------------------------------------- +// $Id$ +// ---------------------------------------------------------------------------- +// Public Domain C Library - http://pdclib.sourceforge.net +// This code is Public Domain. Use, modify, and redistribute at will. +// ---------------------------------------------------------------------------- + +// ---------------------------------------------------------------------------- +// C++ + +bool isnormal( float x ) { /* TODO */ }; +bool isnormal( double x ) { /* TODO */ }; +bool isnormal( long double x ) { /* TODO */ }; diff --git a/functions/math/isunordered.c b/functions/math/isunordered.c new file mode 100644 index 0000000..b3b7fad --- /dev/null +++ b/functions/math/isunordered.c @@ -0,0 +1,13 @@ +// ---------------------------------------------------------------------------- +// $Id$ +// ---------------------------------------------------------------------------- +// Public Domain C Library - http://pdclib.sourceforge.net +// This code is Public Domain. Use, modify, and redistribute at will. +// ---------------------------------------------------------------------------- + +// ---------------------------------------------------------------------------- +// C++ + +bool isunordered( float x, float y ) { /* TODO */ }; +bool isunordered( double x, double y ) { /* TODO */ }; +bool isunordered( long double x, long double y ) { /* TODO */ }; diff --git a/functions/math/log.c b/functions/math/log.c new file mode 100644 index 0000000..47c25ce --- /dev/null +++ b/functions/math/log.c @@ -0,0 +1,54 @@ +// ---------------------------------------------------------------------------- +// $Id$ +// ---------------------------------------------------------------------------- +// Public Domain C Library - http://pdclib.sourceforge.net +// This code is Public Domain. Use, modify, and redistribute at will. +// ---------------------------------------------------------------------------- + +// ---------------------------------------------------------------------------- +// C++ + +float log( float x ) { /* TODO */ }; +long double log( long double x ) { /* TODO */ }; + +float log10( float x ) { /* TODO */ }; +long double log10( long double x ) { /* TODO */ }; + +float log2( float x ) { /* TODO */ }; +long double log2( long double x ) { /* TODO */ }; + +float logb( float x ) { /* TODO */ }; +long double logb( long double x ) { /* TODO */ }; + +int ilogb( float x ) { /* TODO */ }; +int ilogb( long double x ) { /* TODO */ }; + +float log1p( float x ) { /* TODO */ }; +long double log1p( long double x ) { /* TODO */ }; + +// ---------------------------------------------------------------------------- +// Standard C + +double log( double x ) { /* TODO */ }; +float logf( float x ) { /* TODO */ }; +long double logl( long double x ) { /* TODO */ }; + +double log10( double x ) { /* TODO */ }; +float log10f( float x ) { /* TODO */ }; +long double log10l( long double x ) { /* TODO */ }; + +double log2( double x ) { /* TODO */ }; +float log2f( float x ) { /* TODO */ }; +long double log2l( long double x ) { /* TODO */ }; + +double logb( double x ) { /* TODO */ }; +float logbf( float x ) { /* TODO */ }; +long double logbl( long double x ) { /* TODO */ }; + +int ilogb( double x ) { /* TODO */ }; +int ilogbf( float x ) { /* TODO */ }; +int ilogbl( long double x ) { /* TODO */ }; + +double log1p( double x ) { /* TODO */ }; +float log1pf( float x ) { /* TODO */ }; +long double log1pl( long double x ) { /* TODO */ }; diff --git a/functions/math/mod.c b/functions/math/mod.c new file mode 100644 index 0000000..9e002cf --- /dev/null +++ b/functions/math/mod.c @@ -0,0 +1,26 @@ +// ---------------------------------------------------------------------------- +// $Id$ +// ---------------------------------------------------------------------------- +// Public Domain C Library - http://pdclib.sourceforge.net +// This code is Public Domain. Use, modify, and redistribute at will. +// ---------------------------------------------------------------------------- + +// ---------------------------------------------------------------------------- +// C++ + +float fmod( float x, float y ) { /* TODO */ }; +long double fmod( long double x, long double y ) { /* TODO */ }; + +float modf( float x, float * integer ) { /* TODO */ }; +long double modf( long double x, long double * integer ) { /* TODO */ }; + +// ---------------------------------------------------------------------------- +// Standard C + +double fmod( double x, double y ) { /* TODO */ }; +float fmodf( float x, float y ) { /* TODO */ }; +long double fmodl( long double x, long double y ) { /* TODO */ }; + +double modf( double x, double * integer ) { /* TODO */ }; +float modff( float x, float * integer ) { /* TODO */ }; +long double modfl( long double x, long double * integer ) { /* TODO */ }; diff --git a/functions/math/nan.c b/functions/math/nan.c new file mode 100644 index 0000000..5d0526e --- /dev/null +++ b/functions/math/nan.c @@ -0,0 +1,10 @@ +// ---------------------------------------------------------------------------- +// $Id$ +// ---------------------------------------------------------------------------- +// Public Domain C Library - http://pdclib.sourceforge.net +// This code is Public Domain. Use, modify, and redistribute at will. +// ---------------------------------------------------------------------------- + +double nan( const char *str ) { /* TODO */ }; +float nanf( const char *str ) { /* TODO */ }; +long double nanl( const char *str ) { /* TODO */ }; diff --git a/functions/math/nearbyint.c b/functions/math/nearbyint.c new file mode 100644 index 0000000..675951d --- /dev/null +++ b/functions/math/nearbyint.c @@ -0,0 +1,19 @@ +// ---------------------------------------------------------------------------- +// $Id$ +// ---------------------------------------------------------------------------- +// Public Domain C Library - http://pdclib.sourceforge.net +// This code is Public Domain. Use, modify, and redistribute at will. +// ---------------------------------------------------------------------------- + +// ---------------------------------------------------------------------------- +// C++ + +float nearbyint( float x ) { /* TODO */ }; +long double nearbyint( long double x ) { /* TODO */ }; + +// ---------------------------------------------------------------------------- +// Standard C + +double nearbyint( double x ) { /* TODO */ }; +float nearbyintf( float x ) { /* TODO */ }; +long double nearbyintl( long double x ) { /* TODO */ }; diff --git a/functions/math/nextafter.c b/functions/math/nextafter.c new file mode 100644 index 0000000..3d65a68 --- /dev/null +++ b/functions/math/nextafter.c @@ -0,0 +1,19 @@ +// ---------------------------------------------------------------------------- +// $Id$ +// ---------------------------------------------------------------------------- +// Public Domain C Library - http://pdclib.sourceforge.net +// This code is Public Domain. Use, modify, and redistribute at will. +// ---------------------------------------------------------------------------- + +// ---------------------------------------------------------------------------- +// C++ + +float nextafter( float x, float y ) { /* TODO */ }; +long double nextafter( long double x, long double y ) { /* TODO */ }; + +// ---------------------------------------------------------------------------- +// Standard C + +double nextafter( double x, double y ) { /* TODO */ }; +float nextafterf( float x, float y ) { /* TODO */ }; +long double nextafterl( long double x, long double y ) { /* TODO */ }; diff --git a/functions/math/nexttoward.c b/functions/math/nexttoward.c new file mode 100644 index 0000000..a791a42 --- /dev/null +++ b/functions/math/nexttoward.c @@ -0,0 +1,19 @@ +// ---------------------------------------------------------------------------- +// $Id$ +// ---------------------------------------------------------------------------- +// Public Domain C Library - http://pdclib.sourceforge.net +// This code is Public Domain. Use, modify, and redistribute at will. +// ---------------------------------------------------------------------------- + +// ---------------------------------------------------------------------------- +// C++ + +float nexttoward( float x, long double y ) { /* TODO */ }; +long double nexttoward( long double x, long double y ) { /* TODO */ }; + +// ---------------------------------------------------------------------------- +// Standard C + +double nexttoward( double x, long double y ) { /* TODO */ }; +float nexttowardf( float x, long double y ) { /* TODO */ }; +long double nexttowardl( long double x, long double y ) { /* TODO */ }; diff --git a/functions/math/pow.c b/functions/math/pow.c new file mode 100644 index 0000000..ad4639e --- /dev/null +++ b/functions/math/pow.c @@ -0,0 +1,22 @@ +// ---------------------------------------------------------------------------- +// $Id$ +// ---------------------------------------------------------------------------- +// Public Domain C Library - http://pdclib.sourceforge.net +// This code is Public Domain. Use, modify, and redistribute at will. +// ---------------------------------------------------------------------------- + +// ---------------------------------------------------------------------------- +// C++ + +float pow( float x, float y ) { /* TODO */ }; +long double pow( long double x, long double y ) { /* TODO */ }; +double pow( double x, int y ) { /* TODO */ }; +float pow( float x, int y ) { /* TODO */ }; +long double pow( long double x, int y ) { /* TODO */ }; + +// ---------------------------------------------------------------------------- +// Standard C + +double pow( double x, double y ) { /* TODO */ }; +float powf( float x, float y ) { /* TODO */ }; +long double powl( long double x, long double y ) { /* TODO */ }; diff --git a/functions/math/remainder.c b/functions/math/remainder.c new file mode 100644 index 0000000..a12aaa9 --- /dev/null +++ b/functions/math/remainder.c @@ -0,0 +1,19 @@ +// ---------------------------------------------------------------------------- +// $Id$ +// ---------------------------------------------------------------------------- +// Public Domain C Library - http://pdclib.sourceforge.net +// This code is Public Domain. Use, modify, and redistribute at will. +// ---------------------------------------------------------------------------- + +// ---------------------------------------------------------------------------- +// C++ + +float remainder( float x, float y ) { /* TODO */ }; +long double remainder( long double x, long double y ) { /* TODO */ }; + +// ---------------------------------------------------------------------------- +// Standard C + +double remainder( double x, double y ) { /* TODO */ }; +float remainderf( float x, float y ) { /* TODO */ }; +long double remainderl( long double x, long double y ) { /* TODO */ }; diff --git a/functions/math/remquo.c b/functions/math/remquo.c new file mode 100644 index 0000000..ecce3c8 --- /dev/null +++ b/functions/math/remquo.c @@ -0,0 +1,19 @@ +// ---------------------------------------------------------------------------- +// $Id$ +// ---------------------------------------------------------------------------- +// Public Domain C Library - http://pdclib.sourceforge.net +// This code is Public Domain. Use, modify, and redistribute at will. +// ---------------------------------------------------------------------------- + +// ---------------------------------------------------------------------------- +// C++ + +float remquo( float x, float y, int * quotient ) { /* TODO */ }; +long double remquo( long double x, long double y, int * quotient ) { /* TODO */ }; + +// ---------------------------------------------------------------------------- +// Standard C + +double remquo( double x, double y, int * pquo ) { /* TODO */ }; +float remquof( float x, float y, int * pquo ) { /* TODO */ }; +long double remquol( long double x, long double y, int * pquo ) { /* TODO */ }; diff --git a/functions/math/rint.c b/functions/math/rint.c new file mode 100644 index 0000000..f0a7282 --- /dev/null +++ b/functions/math/rint.c @@ -0,0 +1,29 @@ +// ---------------------------------------------------------------------------- +// $Id$ +// ---------------------------------------------------------------------------- +// Public Domain C Library - http://pdclib.sourceforge.net +// This code is Public Domain. Use, modify, and redistribute at will. +// ---------------------------------------------------------------------------- + +// ---------------------------------------------------------------------------- +// C++ + +long long llrint( float x ) { /* TODO */ }; +long long llrint( long double x ) { /* TODO */ }; +long lrint( float x ) { /* TODO */ }; +long lrint( long double x ) { /* TODO */ }; +float rint( float x ) { /* TODO */ }; +long double rint( long double x ) { /* TODO */ }; + +// ---------------------------------------------------------------------------- +// Standard C + +long long llrint( double x ) { /* TODO */ }; +long long llrintf( float x ) { /* TODO */ }; +long long llrintl( long double x ) { /* TODO */ }; +long lrint( double x ) { /* TODO */ }; +long lrintf( float x ) { /* TODO */ }; +long lrintl( long double x ) { /* TODO */ }; +double rint( double x ) { /* TODO */ }; +float rintf( float x ) { /* TODO */ }; +long double rintl( long double x ) { /* TODO */ }; diff --git a/functions/math/round.c b/functions/math/round.c new file mode 100644 index 0000000..bf0a321 --- /dev/null +++ b/functions/math/round.c @@ -0,0 +1,29 @@ +// ---------------------------------------------------------------------------- +// $Id$ +// ---------------------------------------------------------------------------- +// Public Domain C Library - http://pdclib.sourceforge.net +// This code is Public Domain. Use, modify, and redistribute at will. +// ---------------------------------------------------------------------------- + +// ---------------------------------------------------------------------------- +// C++ + +long long llround( float x ) { /* TODO */ }; +long long llround( long double x ) { /* TODO */ }; +long lround( float x ) { /* TODO */ }; +long lround( long double x ) { /* TODO */ }; +float round( float x ) { /* TODO */ }; +long double round( long double x ) { /* TODO */ }; + +// ---------------------------------------------------------------------------- +// Standard C + +long long llround( double x ) { /* TODO */ }; +long long llroundf( float x ) { /* TODO */ }; +long long llroundl( long double x ) { /* TODO */ }; +long lround( double x ) { /* TODO */ }; +long lroundf( float x ) { /* TODO */ }; +long lroundl( long double x ) { /* TODO */ }; +double round( double x ) { /* TODO */ }; +float roundf( float x ) { /* TODO */ }; +long double roundl( long double x ) { /* TODO */ }; diff --git a/functions/math/scalbn.c b/functions/math/scalbn.c new file mode 100644 index 0000000..835be8e --- /dev/null +++ b/functions/math/scalbn.c @@ -0,0 +1,26 @@ +// ---------------------------------------------------------------------------- +// $Id$ +// ---------------------------------------------------------------------------- +// Public Domain C Library - http://pdclib.sourceforge.net +// This code is Public Domain. Use, modify, and redistribute at will. +// ---------------------------------------------------------------------------- + +// ---------------------------------------------------------------------------- +// C++ + +float scalbn( float x, int ex ) { /* TODO */ }; +long double scalbn( long double x, int ex ) { /* TODO */ }; + +float scalbln( float x, long ex ) { /* TODO */ }; +long double scalbln( long double x, long ex ) { /* TODO */ }; + +// ---------------------------------------------------------------------------- +// Standard C + +double scalbn( double x, int ex ) { /* TODO */ }; +float scalbnf( float x, int ex ) { /* TODO */ }; +long double scalbnl( long double x, int ex ) { /* TODO */ }; + +double scalbln( double x, long ex ) { /* TODO */ }; +float scalblnf( float x, long ex ) { /* TODO */ }; +long double scalblnl( long double x, long ex ) { /* TODO */ }; diff --git a/functions/math/signbit.c b/functions/math/signbit.c new file mode 100644 index 0000000..d349fe2 --- /dev/null +++ b/functions/math/signbit.c @@ -0,0 +1,13 @@ +// ---------------------------------------------------------------------------- +// $Id$ +// ---------------------------------------------------------------------------- +// Public Domain C Library - http://pdclib.sourceforge.net +// This code is Public Domain. Use, modify, and redistribute at will. +// ---------------------------------------------------------------------------- + +// ---------------------------------------------------------------------------- +// C++ + +bool signbit( float x ) { /* TODO */ }; +bool signbit( double x ) { /* TODO */ }; +bool signbit( long double x ) { /* TODO */ }; diff --git a/functions/math/sin.c b/functions/math/sin.c new file mode 100644 index 0000000..f2daef9 --- /dev/null +++ b/functions/math/sin.c @@ -0,0 +1,19 @@ +// ---------------------------------------------------------------------------- +// $Id$ +// ---------------------------------------------------------------------------- +// Public Domain C Library - http://pdclib.sourceforge.net +// This code is Public Domain. Use, modify, and redistribute at will. +// ---------------------------------------------------------------------------- + +// ---------------------------------------------------------------------------- +// C++ + +float sin( float x ) { /* TODO */ }; +long double sin( long double x ) { /* TODO */ }; + +// ---------------------------------------------------------------------------- +// Standard C + +double sin( double x ) { /* TODO */ }; +float sinf( float x ) { /* TODO */ }; +long double sinl( long double x ) { /* TODO */ }; diff --git a/functions/math/sinh.c b/functions/math/sinh.c new file mode 100644 index 0000000..ee8e480 --- /dev/null +++ b/functions/math/sinh.c @@ -0,0 +1,19 @@ +// ---------------------------------------------------------------------------- +// $Id$ +// ---------------------------------------------------------------------------- +// Public Domain C Library - http://pdclib.sourceforge.net +// This code is Public Domain. Use, modify, and redistribute at will. +// ---------------------------------------------------------------------------- + +// ---------------------------------------------------------------------------- +// C++ + +float sinh( float x ) { /* TODO */ }; +long double sinh( long double x ) { /* TODO */ }; + +// ---------------------------------------------------------------------------- +// Standard C + +double sinh( double x ) { /* TODO */ }; +float sinhf( float x ) { /* TODO */ }; +long double sinhl( long double x ) { /* TODO */ }; diff --git a/functions/math/sqrt.c b/functions/math/sqrt.c new file mode 100644 index 0000000..3c6c126 --- /dev/null +++ b/functions/math/sqrt.c @@ -0,0 +1,19 @@ +// ---------------------------------------------------------------------------- +// $Id$ +// ---------------------------------------------------------------------------- +// Public Domain C Library - http://pdclib.sourceforge.net +// This code is Public Domain. Use, modify, and redistribute at will. +// ---------------------------------------------------------------------------- + +// ---------------------------------------------------------------------------- +// C++ + +float sqrt( float x ) { /* TODO */ }; +long double sqrt( long double x ) { /* TODO */ }; + +// ---------------------------------------------------------------------------- +// Standard C + +double sqrt( double x ) { /* TODO */ }; +float sqrtf( float x ) { /* TODO */ }; +long double sqrtl( long double x ) { /* TODO */ }; diff --git a/functions/math/tan.c b/functions/math/tan.c new file mode 100644 index 0000000..1ed2788 --- /dev/null +++ b/functions/math/tan.c @@ -0,0 +1,19 @@ +// ---------------------------------------------------------------------------- +// $Id$ +// ---------------------------------------------------------------------------- +// Public Domain C Library - http://pdclib.sourceforge.net +// This code is Public Domain. Use, modify, and redistribute at will. +// ---------------------------------------------------------------------------- + +// ---------------------------------------------------------------------------- +// C++ + +float tan( float x ) { /* TODO */ }; +long double tan( long double x ) { /* TODO */ }; + +// ---------------------------------------------------------------------------- +// Standard C + +double tan( double x ) { /* TODO */ }; +float tanf( float x ) { /* TODO */ }; +long double tanl( long double x ) { /* TODO */ }; diff --git a/functions/math/tanh.c b/functions/math/tanh.c new file mode 100644 index 0000000..b780686 --- /dev/null +++ b/functions/math/tanh.c @@ -0,0 +1,19 @@ +// ---------------------------------------------------------------------------- +// $Id$ +// ---------------------------------------------------------------------------- +// Public Domain C Library - http://pdclib.sourceforge.net +// This code is Public Domain. Use, modify, and redistribute at will. +// ---------------------------------------------------------------------------- + +// ---------------------------------------------------------------------------- +// C++ + +float tanh( float x ) { /* TODO */ }; +long double tanh( long double x ) { /* TODO */ }; + +// ---------------------------------------------------------------------------- +// Standard C + +double tanh( double x ) { /* TODO */ }; +float tanhf( float x ) { /* TODO */ }; +long double tanhl( long double x ) { /* TODO */ }; diff --git a/functions/math/trunc.c b/functions/math/trunc.c new file mode 100644 index 0000000..4682245 --- /dev/null +++ b/functions/math/trunc.c @@ -0,0 +1,19 @@ +// ---------------------------------------------------------------------------- +// $Id$ +// ---------------------------------------------------------------------------- +// Public Domain C Library - http://pdclib.sourceforge.net +// This code is Public Domain. Use, modify, and redistribute at will. +// ---------------------------------------------------------------------------- + +// ---------------------------------------------------------------------------- +// C++ + +float trunc( float x ) { /* TODO */ }; +long double trunc( long double x ) { /* TODO */ }; + +// ---------------------------------------------------------------------------- +// Standard C + +double trunc( double x ) { /* TODO */ }; +float truncf( float x ) { /* TODO */ }; +long double truncl( long double x ) { /* TODO */ }; diff --git a/functions/setjmp.c b/functions/setjmp.c new file mode 100644 index 0000000..762edfb --- /dev/null +++ b/functions/setjmp.c @@ -0,0 +1,9 @@ +// ---------------------------------------------------------------------------- +// $Id$ +// ---------------------------------------------------------------------------- +// Public Domain C Library - http://pdclib.sourceforge.net +// This code is Public Domain. Use, modify, and redistribute at will. +// ---------------------------------------------------------------------------- + +int setjmp(jmp_buf env) { /* TODO */ }; +void longjmp(jmp_buf env, int val) { /* TODO */ }; \ No newline at end of file diff --git a/functions/signal.c b/functions/signal.c new file mode 100644 index 0000000..33535f8 --- /dev/null +++ b/functions/signal.c @@ -0,0 +1,9 @@ +// ---------------------------------------------------------------------------- +// $Id$ +// ---------------------------------------------------------------------------- +// Public Domain C Library - http://pdclib.sourceforge.net +// This code is Public Domain. Use, modify, and redistribute at will. +// ---------------------------------------------------------------------------- + +int raise( int sig ) { /* TODO */ }; +void ( * signal( int sig, void ( *func )( int ) ) ) ( int ) { /* TODO */ }; diff --git a/functions/stdio/clearerr.c b/functions/stdio/clearerr.c new file mode 100644 index 0000000..1adce82 --- /dev/null +++ b/functions/stdio/clearerr.c @@ -0,0 +1,8 @@ +// ---------------------------------------------------------------------------- +// $Id$ +// ---------------------------------------------------------------------------- +// Public Domain C Library - http://pdclib.sourceforge.net +// This code is Public Domain. Use, modify, and redistribute at will. +// ---------------------------------------------------------------------------- + +void clearerr( FILE * stream ) { /* TODO */ }; diff --git a/functions/stdio/fclose.c b/functions/stdio/fclose.c new file mode 100644 index 0000000..04a9aa2 --- /dev/null +++ b/functions/stdio/fclose.c @@ -0,0 +1,8 @@ +// ---------------------------------------------------------------------------- +// $Id$ +// ---------------------------------------------------------------------------- +// Public Domain C Library - http://pdclib.sourceforge.net +// This code is Public Domain. Use, modify, and redistribute at will. +// ---------------------------------------------------------------------------- + +int fclose( FILE * stream ) { /* TODO */ }; diff --git a/functions/stdio/feof.c b/functions/stdio/feof.c new file mode 100644 index 0000000..7467465 --- /dev/null +++ b/functions/stdio/feof.c @@ -0,0 +1,8 @@ +// ---------------------------------------------------------------------------- +// $Id$ +// ---------------------------------------------------------------------------- +// Public Domain C Library - http://pdclib.sourceforge.net +// This code is Public Domain. Use, modify, and redistribute at will. +// ---------------------------------------------------------------------------- + +int feof( FILE * stream ) { /* TODO */ }; diff --git a/functions/stdio/ferror.c b/functions/stdio/ferror.c new file mode 100644 index 0000000..a1855a3 --- /dev/null +++ b/functions/stdio/ferror.c @@ -0,0 +1,8 @@ +// ---------------------------------------------------------------------------- +// $Id$ +// ---------------------------------------------------------------------------- +// Public Domain C Library - http://pdclib.sourceforge.net +// This code is Public Domain. Use, modify, and redistribute at will. +// ---------------------------------------------------------------------------- + +int ferror( FILE * stream ) { /* TODO */ }; diff --git a/functions/stdio/fflush.c b/functions/stdio/fflush.c new file mode 100644 index 0000000..a74f77a --- /dev/null +++ b/functions/stdio/fflush.c @@ -0,0 +1,8 @@ +// ---------------------------------------------------------------------------- +// $Id$ +// ---------------------------------------------------------------------------- +// Public Domain C Library - http://pdclib.sourceforge.net +// This code is Public Domain. Use, modify, and redistribute at will. +// ---------------------------------------------------------------------------- + +int fflush( FILE * stream ) { /* TODO */ }; diff --git a/functions/stdio/fgetc.c b/functions/stdio/fgetc.c new file mode 100644 index 0000000..1ca2367 --- /dev/null +++ b/functions/stdio/fgetc.c @@ -0,0 +1,8 @@ +// ---------------------------------------------------------------------------- +// $Id$ +// ---------------------------------------------------------------------------- +// Public Domain C Library - http://pdclib.sourceforge.net +// This code is Public Domain. Use, modify, and redistribute at will. +// ---------------------------------------------------------------------------- + +int fgetc( FILE * stream ) { /* TODO */ }; diff --git a/functions/stdio/fgetpos.c b/functions/stdio/fgetpos.c new file mode 100644 index 0000000..b26979b --- /dev/null +++ b/functions/stdio/fgetpos.c @@ -0,0 +1,8 @@ +// ---------------------------------------------------------------------------- +// $Id$ +// ---------------------------------------------------------------------------- +// Public Domain C Library - http://pdclib.sourceforge.net +// This code is Public Domain. Use, modify, and redistribute at will. +// ---------------------------------------------------------------------------- + +int fgetpos( FILE * restrict stream, fpos_t * restrict pos ) { /* TODO */ }; diff --git a/functions/stdio/fgets.c b/functions/stdio/fgets.c new file mode 100644 index 0000000..b7e0faa --- /dev/null +++ b/functions/stdio/fgets.c @@ -0,0 +1,8 @@ +// ---------------------------------------------------------------------------- +// $Id$ +// ---------------------------------------------------------------------------- +// Public Domain C Library - http://pdclib.sourceforge.net +// This code is Public Domain. Use, modify, and redistribute at will. +// ---------------------------------------------------------------------------- + +char * fgets( char * restrict s, int n, FILE * restrict stream ) { /* TODO */ }; diff --git a/functions/stdio/fopen.c b/functions/stdio/fopen.c new file mode 100644 index 0000000..04020d9 --- /dev/null +++ b/functions/stdio/fopen.c @@ -0,0 +1,8 @@ +// ---------------------------------------------------------------------------- +// $Id$ +// ---------------------------------------------------------------------------- +// Public Domain C Library - http://pdclib.sourceforge.net +// This code is Public Domain. Use, modify, and redistribute at will. +// ---------------------------------------------------------------------------- + +FILE * fopen( const char * restrict filename, const char * restrict mode ) { /* TODO */ }; diff --git a/functions/stdio/fprintf.c b/functions/stdio/fprintf.c new file mode 100644 index 0000000..ea4f97d --- /dev/null +++ b/functions/stdio/fprintf.c @@ -0,0 +1,8 @@ +// ---------------------------------------------------------------------------- +// $Id$ +// ---------------------------------------------------------------------------- +// Public Domain C Library - http://pdclib.sourceforge.net +// This code is Public Domain. Use, modify, and redistribute at will. +// ---------------------------------------------------------------------------- + +int fprintf( FILE * restrict stream, const char * restrict format, ... ) { /* TODO */ }; diff --git a/functions/stdio/fputc.c b/functions/stdio/fputc.c new file mode 100644 index 0000000..4321b30 --- /dev/null +++ b/functions/stdio/fputc.c @@ -0,0 +1,8 @@ +// ---------------------------------------------------------------------------- +// $Id$ +// ---------------------------------------------------------------------------- +// Public Domain C Library - http://pdclib.sourceforge.net +// This code is Public Domain. Use, modify, and redistribute at will. +// ---------------------------------------------------------------------------- + +int fputc( int c, FILE * stream ) { /* TODO */ }; diff --git a/functions/stdio/fputs.c b/functions/stdio/fputs.c new file mode 100644 index 0000000..86abe11 --- /dev/null +++ b/functions/stdio/fputs.c @@ -0,0 +1,8 @@ +// ---------------------------------------------------------------------------- +// $Id$ +// ---------------------------------------------------------------------------- +// Public Domain C Library - http://pdclib.sourceforge.net +// This code is Public Domain. Use, modify, and redistribute at will. +// ---------------------------------------------------------------------------- + +int fputs( const char * restrict s, FILE * restrict stream ) { /* TODO */ }; diff --git a/functions/stdio/fread.c b/functions/stdio/fread.c new file mode 100644 index 0000000..905ff4d --- /dev/null +++ b/functions/stdio/fread.c @@ -0,0 +1,8 @@ +// ---------------------------------------------------------------------------- +// $Id$ +// ---------------------------------------------------------------------------- +// Public Domain C Library - http://pdclib.sourceforge.net +// This code is Public Domain. Use, modify, and redistribute at will. +// ---------------------------------------------------------------------------- + +size_t fread( void * restrict ptr, size_t size, size_t nelem, FILE * restrict stream ) { /* TODO */ }; diff --git a/functions/stdio/freopen.c b/functions/stdio/freopen.c new file mode 100644 index 0000000..23c12e0 --- /dev/null +++ b/functions/stdio/freopen.c @@ -0,0 +1,8 @@ +// ---------------------------------------------------------------------------- +// $Id$ +// ---------------------------------------------------------------------------- +// Public Domain C Library - http://pdclib.sourceforge.net +// This code is Public Domain. Use, modify, and redistribute at will. +// ---------------------------------------------------------------------------- + +FILE * freopen( const char * restrict filename, const char * restrict mode, FILE * stream ) { /* TODO */ }; diff --git a/functions/stdio/fscanf.c b/functions/stdio/fscanf.c new file mode 100644 index 0000000..1170841 --- /dev/null +++ b/functions/stdio/fscanf.c @@ -0,0 +1,8 @@ +// ---------------------------------------------------------------------------- +// $Id$ +// ---------------------------------------------------------------------------- +// Public Domain C Library - http://pdclib.sourceforge.net +// This code is Public Domain. Use, modify, and redistribute at will. +// ---------------------------------------------------------------------------- + +int fscanf( FILE * restrict stream, const char * restrict format, ... ) { /* TODO */ }; diff --git a/functions/stdio/fseek.c b/functions/stdio/fseek.c new file mode 100644 index 0000000..7bffffb --- /dev/null +++ b/functions/stdio/fseek.c @@ -0,0 +1,8 @@ +// ---------------------------------------------------------------------------- +// $Id$ +// ---------------------------------------------------------------------------- +// Public Domain C Library - http://pdclib.sourceforge.net +// This code is Public Domain. Use, modify, and redistribute at will. +// ---------------------------------------------------------------------------- + +int fseek( FILE * stream, long offset, int mode ) { /* TODO */ }; diff --git a/functions/stdio/fsetpos.c b/functions/stdio/fsetpos.c new file mode 100644 index 0000000..ae10039 --- /dev/null +++ b/functions/stdio/fsetpos.c @@ -0,0 +1,8 @@ +// ---------------------------------------------------------------------------- +// $Id$ +// ---------------------------------------------------------------------------- +// Public Domain C Library - http://pdclib.sourceforge.net +// This code is Public Domain. Use, modify, and redistribute at will. +// ---------------------------------------------------------------------------- + +int fsetpos( FILE * stream, const fpos_t * pos ) { /* TODO */ }; diff --git a/functions/stdio/ftell.c b/functions/stdio/ftell.c new file mode 100644 index 0000000..d531292 --- /dev/null +++ b/functions/stdio/ftell.c @@ -0,0 +1,8 @@ +// ---------------------------------------------------------------------------- +// $Id$ +// ---------------------------------------------------------------------------- +// Public Domain C Library - http://pdclib.sourceforge.net +// This code is Public Domain. Use, modify, and redistribute at will. +// ---------------------------------------------------------------------------- + +long ftell( FILE * stream ) { /* TODO */ }; diff --git a/functions/stdio/fwrite.c b/functions/stdio/fwrite.c new file mode 100644 index 0000000..4eece02 --- /dev/null +++ b/functions/stdio/fwrite.c @@ -0,0 +1,8 @@ +// ---------------------------------------------------------------------------- +// $Id$ +// ---------------------------------------------------------------------------- +// Public Domain C Library - http://pdclib.sourceforge.net +// This code is Public Domain. Use, modify, and redistribute at will. +// ---------------------------------------------------------------------------- + +size_t fwrite( const void * restrict ptr, size_t size, size_t nelem, FILE * restrict stream ) { /* TODO */ }; diff --git a/functions/stdio/getc.c b/functions/stdio/getc.c new file mode 100644 index 0000000..550e954 --- /dev/null +++ b/functions/stdio/getc.c @@ -0,0 +1,8 @@ +// ---------------------------------------------------------------------------- +// $Id$ +// ---------------------------------------------------------------------------- +// Public Domain C Library - http://pdclib.sourceforge.net +// This code is Public Domain. Use, modify, and redistribute at will. +// ---------------------------------------------------------------------------- + +int getc( FILE * stream ) { /* TODO */ }; diff --git a/functions/stdio/getchar.c b/functions/stdio/getchar.c new file mode 100644 index 0000000..734e19b --- /dev/null +++ b/functions/stdio/getchar.c @@ -0,0 +1,8 @@ +// ---------------------------------------------------------------------------- +// $Id$ +// ---------------------------------------------------------------------------- +// Public Domain C Library - http://pdclib.sourceforge.net +// This code is Public Domain. Use, modify, and redistribute at will. +// ---------------------------------------------------------------------------- + +int getchar( void ) { /* TODO */ }; diff --git a/functions/stdio/gets.c b/functions/stdio/gets.c new file mode 100644 index 0000000..beba574 --- /dev/null +++ b/functions/stdio/gets.c @@ -0,0 +1,8 @@ +// ---------------------------------------------------------------------------- +// $Id$ +// ---------------------------------------------------------------------------- +// Public Domain C Library - http://pdclib.sourceforge.net +// This code is Public Domain. Use, modify, and redistribute at will. +// ---------------------------------------------------------------------------- + +char * gets( char * s ) { /* TODO */ }; diff --git a/functions/stdio/perror.c b/functions/stdio/perror.c new file mode 100644 index 0000000..f93a53b --- /dev/null +++ b/functions/stdio/perror.c @@ -0,0 +1,8 @@ +// ---------------------------------------------------------------------------- +// $Id$ +// ---------------------------------------------------------------------------- +// Public Domain C Library - http://pdclib.sourceforge.net +// This code is Public Domain. Use, modify, and redistribute at will. +// ---------------------------------------------------------------------------- + +void perror( const char * s ) { /* TODO */ }; diff --git a/functions/stdio/printf.c b/functions/stdio/printf.c new file mode 100644 index 0000000..cda5741 --- /dev/null +++ b/functions/stdio/printf.c @@ -0,0 +1,8 @@ +// ---------------------------------------------------------------------------- +// $Id$ +// ---------------------------------------------------------------------------- +// Public Domain C Library - http://pdclib.sourceforge.net +// This code is Public Domain. Use, modify, and redistribute at will. +// ---------------------------------------------------------------------------- + +int printf( const char * restrict format, ... ) { /* TODO */ }; diff --git a/functions/stdio/putc.c b/functions/stdio/putc.c new file mode 100644 index 0000000..83b4086 --- /dev/null +++ b/functions/stdio/putc.c @@ -0,0 +1,8 @@ +// ---------------------------------------------------------------------------- +// $Id$ +// ---------------------------------------------------------------------------- +// Public Domain C Library - http://pdclib.sourceforge.net +// This code is Public Domain. Use, modify, and redistribute at will. +// ---------------------------------------------------------------------------- + +int putc( int c, FILE * stream ) { /* TODO */ }; diff --git a/functions/stdio/putchar.c b/functions/stdio/putchar.c new file mode 100644 index 0000000..fab2213 --- /dev/null +++ b/functions/stdio/putchar.c @@ -0,0 +1,8 @@ +// ---------------------------------------------------------------------------- +// $Id$ +// ---------------------------------------------------------------------------- +// Public Domain C Library - http://pdclib.sourceforge.net +// This code is Public Domain. Use, modify, and redistribute at will. +// ---------------------------------------------------------------------------- + +int putchar( int c ) { /* TODO */ }; diff --git a/functions/stdio/puts.c b/functions/stdio/puts.c new file mode 100644 index 0000000..9354351 --- /dev/null +++ b/functions/stdio/puts.c @@ -0,0 +1,8 @@ +// ---------------------------------------------------------------------------- +// $Id$ +// ---------------------------------------------------------------------------- +// Public Domain C Library - http://pdclib.sourceforge.net +// This code is Public Domain. Use, modify, and redistribute at will. +// ---------------------------------------------------------------------------- + +int puts( const char * s ) { /* TODO */ }; diff --git a/functions/stdio/remove.c b/functions/stdio/remove.c new file mode 100644 index 0000000..e89b995 --- /dev/null +++ b/functions/stdio/remove.c @@ -0,0 +1,8 @@ +// ---------------------------------------------------------------------------- +// $Id$ +// ---------------------------------------------------------------------------- +// Public Domain C Library - http://pdclib.sourceforge.net +// This code is Public Domain. Use, modify, and redistribute at will. +// ---------------------------------------------------------------------------- + +int remove( const char * filename ) { /* TODO */ }; diff --git a/functions/stdio/rename.c b/functions/stdio/rename.c new file mode 100644 index 0000000..5cb5665 --- /dev/null +++ b/functions/stdio/rename.c @@ -0,0 +1,8 @@ +// ---------------------------------------------------------------------------- +// $Id$ +// ---------------------------------------------------------------------------- +// Public Domain C Library - http://pdclib.sourceforge.net +// This code is Public Domain. Use, modify, and redistribute at will. +// ---------------------------------------------------------------------------- + +int rename( const char * old, const char * new ) { /* TODO */ }; diff --git a/functions/stdio/rewind.c b/functions/stdio/rewind.c new file mode 100644 index 0000000..0dd56ae --- /dev/null +++ b/functions/stdio/rewind.c @@ -0,0 +1,8 @@ +// ---------------------------------------------------------------------------- +// $Id$ +// ---------------------------------------------------------------------------- +// Public Domain C Library - http://pdclib.sourceforge.net +// This code is Public Domain. Use, modify, and redistribute at will. +// ---------------------------------------------------------------------------- + +void rewind( FILE * stream ) { /* TODO */ }; diff --git a/functions/stdio/scanf.c b/functions/stdio/scanf.c new file mode 100644 index 0000000..7ebb31d --- /dev/null +++ b/functions/stdio/scanf.c @@ -0,0 +1,8 @@ +// ---------------------------------------------------------------------------- +// $Id$ +// ---------------------------------------------------------------------------- +// Public Domain C Library - http://pdclib.sourceforge.net +// This code is Public Domain. Use, modify, and redistribute at will. +// ---------------------------------------------------------------------------- + +int scanf( const char * restrict format, ... ) { /* TODO */ }; diff --git a/functions/stdio/setbuf.c b/functions/stdio/setbuf.c new file mode 100644 index 0000000..6d689b0 --- /dev/null +++ b/functions/stdio/setbuf.c @@ -0,0 +1,8 @@ +// ---------------------------------------------------------------------------- +// $Id$ +// ---------------------------------------------------------------------------- +// Public Domain C Library - http://pdclib.sourceforge.net +// This code is Public Domain. Use, modify, and redistribute at will. +// ---------------------------------------------------------------------------- + +void setbuf( FILE * restrict stream, char * restrict buf ) { /* TODO */ }; diff --git a/functions/stdio/setvbuf.c b/functions/stdio/setvbuf.c new file mode 100644 index 0000000..a65dd8e --- /dev/null +++ b/functions/stdio/setvbuf.c @@ -0,0 +1,8 @@ +// ---------------------------------------------------------------------------- +// $Id$ +// ---------------------------------------------------------------------------- +// Public Domain C Library - http://pdclib.sourceforge.net +// This code is Public Domain. Use, modify, and redistribute at will. +// ---------------------------------------------------------------------------- + +int setvbuf( FILE * restrict stream, char * restrict buf, int mode, size_t size ) { /* TODO */ }; diff --git a/functions/stdio/snprintf.c b/functions/stdio/snprintf.c new file mode 100644 index 0000000..f4b7ebf --- /dev/null +++ b/functions/stdio/snprintf.c @@ -0,0 +1,8 @@ +// ---------------------------------------------------------------------------- +// $Id$ +// ---------------------------------------------------------------------------- +// Public Domain C Library - http://pdclib.sourceforge.net +// This code is Public Domain. Use, modify, and redistribute at will. +// ---------------------------------------------------------------------------- + +int snprintf( char * restrict s, size_t n, const char * restrict format, ... ) { /* TODO */ }; diff --git a/functions/stdio/sprintf.c b/functions/stdio/sprintf.c new file mode 100644 index 0000000..5a06202 --- /dev/null +++ b/functions/stdio/sprintf.c @@ -0,0 +1,8 @@ +// ---------------------------------------------------------------------------- +// $Id$ +// ---------------------------------------------------------------------------- +// Public Domain C Library - http://pdclib.sourceforge.net +// This code is Public Domain. Use, modify, and redistribute at will. +// ---------------------------------------------------------------------------- + +int sprintf( char * restrict s, const char * restrict format, ... ) { /* TODO */ }; diff --git a/functions/stdio/sscanf.c b/functions/stdio/sscanf.c new file mode 100644 index 0000000..ffe1475 --- /dev/null +++ b/functions/stdio/sscanf.c @@ -0,0 +1,8 @@ +// ---------------------------------------------------------------------------- +// $Id$ +// ---------------------------------------------------------------------------- +// Public Domain C Library - http://pdclib.sourceforge.net +// This code is Public Domain. Use, modify, and redistribute at will. +// ---------------------------------------------------------------------------- + +int sscanf( const char * restrict s, const char * restrict format, ... ) { /* TODO */ }; diff --git a/functions/stdio/tmpfile.c b/functions/stdio/tmpfile.c new file mode 100644 index 0000000..90c9ce7 --- /dev/null +++ b/functions/stdio/tmpfile.c @@ -0,0 +1,8 @@ +// ---------------------------------------------------------------------------- +// $Id$ +// ---------------------------------------------------------------------------- +// Public Domain C Library - http://pdclib.sourceforge.net +// This code is Public Domain. Use, modify, and redistribute at will. +// ---------------------------------------------------------------------------- + +FILE * tmpfile( void ) { /* TODO */ }; diff --git a/functions/stdio/tmpnam.c b/functions/stdio/tmpnam.c new file mode 100644 index 0000000..fe3a75d --- /dev/null +++ b/functions/stdio/tmpnam.c @@ -0,0 +1,8 @@ +// ---------------------------------------------------------------------------- +// $Id$ +// ---------------------------------------------------------------------------- +// Public Domain C Library - http://pdclib.sourceforge.net +// This code is Public Domain. Use, modify, and redistribute at will. +// ---------------------------------------------------------------------------- + +char * tmpnam( char * s ) { /* TODO */ }; diff --git a/functions/stdio/ungetc.c b/functions/stdio/ungetc.c new file mode 100644 index 0000000..c355afc --- /dev/null +++ b/functions/stdio/ungetc.c @@ -0,0 +1,8 @@ +// ---------------------------------------------------------------------------- +// $Id$ +// ---------------------------------------------------------------------------- +// Public Domain C Library - http://pdclib.sourceforge.net +// This code is Public Domain. Use, modify, and redistribute at will. +// ---------------------------------------------------------------------------- + +int ungetc( int c, FILE * stream ) { /* TODO */ }; diff --git a/functions/stdio/vfprintf.c b/functions/stdio/vfprintf.c new file mode 100644 index 0000000..a903d8f --- /dev/null +++ b/functions/stdio/vfprintf.c @@ -0,0 +1,8 @@ +// ---------------------------------------------------------------------------- +// $Id$ +// ---------------------------------------------------------------------------- +// Public Domain C Library - http://pdclib.sourceforge.net +// This code is Public Domain. Use, modify, and redistribute at will. +// ---------------------------------------------------------------------------- + +int vfprintf( FILE * restrict stream, const char * restrict format, va_list ap ) { /* TODO */ }; diff --git a/functions/stdio/vfscanf.c b/functions/stdio/vfscanf.c new file mode 100644 index 0000000..a75870e --- /dev/null +++ b/functions/stdio/vfscanf.c @@ -0,0 +1,8 @@ +// ---------------------------------------------------------------------------- +// $Id$ +// ---------------------------------------------------------------------------- +// Public Domain C Library - http://pdclib.sourceforge.net +// This code is Public Domain. Use, modify, and redistribute at will. +// ---------------------------------------------------------------------------- + +int vfscanf( FILE * restrict stream, const char * restrict format, va_list ap ) { /* TODO */ }; diff --git a/functions/stdio/vprintf.c b/functions/stdio/vprintf.c new file mode 100644 index 0000000..02de2e0 --- /dev/null +++ b/functions/stdio/vprintf.c @@ -0,0 +1,8 @@ +// ---------------------------------------------------------------------------- +// $Id$ +// ---------------------------------------------------------------------------- +// Public Domain C Library - http://pdclib.sourceforge.net +// This code is Public Domain. Use, modify, and redistribute at will. +// ---------------------------------------------------------------------------- + +int vprintf( const char * restrict format, va_list ap ) { /* TODO */ }; diff --git a/functions/stdio/vscanf.c b/functions/stdio/vscanf.c new file mode 100644 index 0000000..ee0087a --- /dev/null +++ b/functions/stdio/vscanf.c @@ -0,0 +1,8 @@ +// ---------------------------------------------------------------------------- +// $Id$ +// ---------------------------------------------------------------------------- +// Public Domain C Library - http://pdclib.sourceforge.net +// This code is Public Domain. Use, modify, and redistribute at will. +// ---------------------------------------------------------------------------- + +int vscanf( const char * restrict format, va_list ap ) { /* TODO */ }; diff --git a/functions/stdio/vsnprintf.c b/functions/stdio/vsnprintf.c new file mode 100644 index 0000000..df104ec --- /dev/null +++ b/functions/stdio/vsnprintf.c @@ -0,0 +1,8 @@ +// ---------------------------------------------------------------------------- +// $Id$ +// ---------------------------------------------------------------------------- +// Public Domain C Library - http://pdclib.sourceforge.net +// This code is Public Domain. Use, modify, and redistribute at will. +// ---------------------------------------------------------------------------- + +int vsnprintf( char * restrict s, size_t n, const char * restrict format, va_list ap ) { /* TODO */ }; diff --git a/functions/stdio/vsprintf.c b/functions/stdio/vsprintf.c new file mode 100644 index 0000000..2cfcdfb --- /dev/null +++ b/functions/stdio/vsprintf.c @@ -0,0 +1,8 @@ +// ---------------------------------------------------------------------------- +// $Id$ +// ---------------------------------------------------------------------------- +// Public Domain C Library - http://pdclib.sourceforge.net +// This code is Public Domain. Use, modify, and redistribute at will. +// ---------------------------------------------------------------------------- + +int vsprintf( char * restrict s, const char * restrict format, va_list ap) { /* TODO */ }; diff --git a/functions/stdio/vsscanf.c b/functions/stdio/vsscanf.c new file mode 100644 index 0000000..f29f051 --- /dev/null +++ b/functions/stdio/vsscanf.c @@ -0,0 +1,8 @@ +// ---------------------------------------------------------------------------- +// $Id$ +// ---------------------------------------------------------------------------- +// Public Domain C Library - http://pdclib.sourceforge.net +// This code is Public Domain. Use, modify, and redistribute at will. +// ---------------------------------------------------------------------------- + +int vsscanf( const char * restrict s, const char * restrict format, va_list ap ) { /* TODO */ }; diff --git a/functions/stdlib/_Exit.c b/functions/stdlib/_Exit.c new file mode 100644 index 0000000..561ab4a --- /dev/null +++ b/functions/stdlib/_Exit.c @@ -0,0 +1,8 @@ +// ---------------------------------------------------------------------------- +// $Id$ +// ---------------------------------------------------------------------------- +// Public Domain C Library - http://pdclib.sourceforge.net +// This code is Public Domain. Use, modify, and redistribute at will. +// ---------------------------------------------------------------------------- + +void _Exit( int status ) { /* TODO */ }; diff --git a/functions/stdlib/abort.c b/functions/stdlib/abort.c new file mode 100644 index 0000000..61d3a01 --- /dev/null +++ b/functions/stdlib/abort.c @@ -0,0 +1,8 @@ +// ---------------------------------------------------------------------------- +// $Id$ +// ---------------------------------------------------------------------------- +// Public Domain C Library - http://pdclib.sourceforge.net +// This code is Public Domain. Use, modify, and redistribute at will. +// ---------------------------------------------------------------------------- + +void abort( void ) { /* TODO */ }; diff --git a/functions/stdlib/atexit.c b/functions/stdlib/atexit.c new file mode 100644 index 0000000..ac478c9 --- /dev/null +++ b/functions/stdlib/atexit.c @@ -0,0 +1,9 @@ +// ---------------------------------------------------------------------------- +// $Id$ +// ---------------------------------------------------------------------------- +// Public Domain C Library - http://pdclib.sourceforge.net +// This code is Public Domain. Use, modify, and redistribute at will. +// ---------------------------------------------------------------------------- + +// TODO: C/C++ linkages +int atexit( void (*func) ( void ) ) { /* TODO */ }; diff --git a/functions/stdlib/bsearch.c b/functions/stdlib/bsearch.c new file mode 100644 index 0000000..0560286 --- /dev/null +++ b/functions/stdlib/bsearch.c @@ -0,0 +1,9 @@ +// ---------------------------------------------------------------------------- +// $Id$ +// ---------------------------------------------------------------------------- +// Public Domain C Library - http://pdclib.sourceforge.net +// This code is Public Domain. Use, modify, and redistribute at will. +// ---------------------------------------------------------------------------- + +// TODO: C/C++ linkage +void * bsearch( const void * key, const void * base, size_t nelem, size_t size, int (*cmp) ( const void * ck, const void * ce) ) { /* TODO */ }; diff --git a/functions/stdlib/calloc.c b/functions/stdlib/calloc.c new file mode 100644 index 0000000..5470427 --- /dev/null +++ b/functions/stdlib/calloc.c @@ -0,0 +1,8 @@ +// ---------------------------------------------------------------------------- +// $Id$ +// ---------------------------------------------------------------------------- +// Public Domain C Library - http://pdclib.sourceforge.net +// This code is Public Domain. Use, modify, and redistribute at will. +// ---------------------------------------------------------------------------- + +void * calloc( size_t nelem, size_t size ) { /* TODO */ }; diff --git a/functions/stdlib/div.c b/functions/stdlib/div.c new file mode 100644 index 0000000..4994d3d --- /dev/null +++ b/functions/stdlib/div.c @@ -0,0 +1,19 @@ +// ---------------------------------------------------------------------------- +// $Id$ +// ---------------------------------------------------------------------------- +// Public Domain C Library - http://pdclib.sourceforge.net +// This code is Public Domain. Use, modify, and redistribute at will. +// ---------------------------------------------------------------------------- + +// ---------------------------------------------------------------------------- +// C++ + +ldiv_t div( long numer, long denom ) { /* TODO */ }; +lldiv_t div( long long numer, long long denom ) { /* TODO */ }; + +// ---------------------------------------------------------------------------- +// Standard C + +div_t div( int numer, int denom ) { /* TODO */ }; +lldiv_t lldiv( long long numer, long long denom ) { /* TODO */ }; +ldiv_t ldiv( long numer, long denom ) { /* TODO */ }; diff --git a/functions/stdlib/exit.c b/functions/stdlib/exit.c new file mode 100644 index 0000000..a0525e3 --- /dev/null +++ b/functions/stdlib/exit.c @@ -0,0 +1,8 @@ +// ---------------------------------------------------------------------------- +// $Id$ +// ---------------------------------------------------------------------------- +// Public Domain C Library - http://pdclib.sourceforge.net +// This code is Public Domain. Use, modify, and redistribute at will. +// ---------------------------------------------------------------------------- + +void exit( int status ) { /* TODO */ }; diff --git a/functions/stdlib/free.c b/functions/stdlib/free.c new file mode 100644 index 0000000..5801248 --- /dev/null +++ b/functions/stdlib/free.c @@ -0,0 +1,8 @@ +// ---------------------------------------------------------------------------- +// $Id$ +// ---------------------------------------------------------------------------- +// Public Domain C Library - http://pdclib.sourceforge.net +// This code is Public Domain. Use, modify, and redistribute at will. +// ---------------------------------------------------------------------------- + +void free( void * ptr ) { /* TODO */ }; diff --git a/functions/stdlib/getenv.c b/functions/stdlib/getenv.c new file mode 100644 index 0000000..2b04d51 --- /dev/null +++ b/functions/stdlib/getenv.c @@ -0,0 +1,8 @@ +// ---------------------------------------------------------------------------- +// $Id$ +// ---------------------------------------------------------------------------- +// Public Domain C Library - http://pdclib.sourceforge.net +// This code is Public Domain. Use, modify, and redistribute at will. +// ---------------------------------------------------------------------------- + +char * getenv( const char * name ) { /* TODO */ }; diff --git a/functions/stdlib/malloc.c b/functions/stdlib/malloc.c new file mode 100644 index 0000000..d1a8d5e --- /dev/null +++ b/functions/stdlib/malloc.c @@ -0,0 +1,8 @@ +// ---------------------------------------------------------------------------- +// $Id$ +// ---------------------------------------------------------------------------- +// Public Domain C Library - http://pdclib.sourceforge.net +// This code is Public Domain. Use, modify, and redistribute at will. +// ---------------------------------------------------------------------------- + +void * malloc( size_t size ) { /* TODO */ }; diff --git a/functions/stdlib/mblen.c b/functions/stdlib/mblen.c new file mode 100644 index 0000000..b9136e4 --- /dev/null +++ b/functions/stdlib/mblen.c @@ -0,0 +1,8 @@ +// ---------------------------------------------------------------------------- +// $Id$ +// ---------------------------------------------------------------------------- +// Public Domain C Library - http://pdclib.sourceforge.net +// This code is Public Domain. Use, modify, and redistribute at will. +// ---------------------------------------------------------------------------- + +int mblen( const char * s, size_t n ) { /* TODO */ }; diff --git a/functions/stdlib/mbstowcs.c b/functions/stdlib/mbstowcs.c new file mode 100644 index 0000000..e58d9b9 --- /dev/null +++ b/functions/stdlib/mbstowcs.c @@ -0,0 +1,8 @@ +// ---------------------------------------------------------------------------- +// $Id$ +// ---------------------------------------------------------------------------- +// Public Domain C Library - http://pdclib.sourceforge.net +// This code is Public Domain. Use, modify, and redistribute at will. +// ---------------------------------------------------------------------------- + +size_t mbstowcs( wchar_t * restrict wcs, const char * restrict s, size_t n ) { /* TODO */ }; diff --git a/functions/stdlib/mbtowc.c b/functions/stdlib/mbtowc.c new file mode 100644 index 0000000..89a68ca --- /dev/null +++ b/functions/stdlib/mbtowc.c @@ -0,0 +1,8 @@ +// ---------------------------------------------------------------------------- +// $Id$ +// ---------------------------------------------------------------------------- +// Public Domain C Library - http://pdclib.sourceforge.net +// This code is Public Domain. Use, modify, and redistribute at will. +// ---------------------------------------------------------------------------- + +int mbtowc( wchar_t * restrict pwc, const char * restrict s, size_t n ) { /* TODO */ }; diff --git a/functions/stdlib/qsort.c b/functions/stdlib/qsort.c new file mode 100644 index 0000000..5904975 --- /dev/null +++ b/functions/stdlib/qsort.c @@ -0,0 +1,9 @@ +// ---------------------------------------------------------------------------- +// $Id$ +// ---------------------------------------------------------------------------- +// Public Domain C Library - http://pdclib.sourceforge.net +// This code is Public Domain. Use, modify, and redistribute at will. +// ---------------------------------------------------------------------------- + +// TODO: C/C++ linkage +void qsort( void * base, size_t nelem, size_t size, int (*cmp) ( const void * e1, const void * e2) ) { /* TODO */ }; diff --git a/functions/stdlib/rand.c b/functions/stdlib/rand.c new file mode 100644 index 0000000..0821fe4 --- /dev/null +++ b/functions/stdlib/rand.c @@ -0,0 +1,9 @@ +// ---------------------------------------------------------------------------- +// $Id$ +// ---------------------------------------------------------------------------- +// Public Domain C Library - http://pdclib.sourceforge.net +// This code is Public Domain. Use, modify, and redistribute at will. +// ---------------------------------------------------------------------------- + +int rand( void ) { /* TODO */ }; +void srand( unsigned int seed ) { /* TODO */ }; diff --git a/functions/stdlib/realloc.c b/functions/stdlib/realloc.c new file mode 100644 index 0000000..ac615b8 --- /dev/null +++ b/functions/stdlib/realloc.c @@ -0,0 +1,8 @@ +// ---------------------------------------------------------------------------- +// $Id$ +// ---------------------------------------------------------------------------- +// Public Domain C Library - http://pdclib.sourceforge.net +// This code is Public Domain. Use, modify, and redistribute at will. +// ---------------------------------------------------------------------------- + +void * realloc( void * ptr, size_t size ) { /* TODO */ }; diff --git a/functions/stdlib/strtox.c b/functions/stdlib/strtox.c new file mode 100644 index 0000000..cca9711 --- /dev/null +++ b/functions/stdlib/strtox.c @@ -0,0 +1,21 @@ +// ---------------------------------------------------------------------------- +// $Id$ +// ---------------------------------------------------------------------------- +// Public Domain C Library - http://pdclib.sourceforge.net +// This code is Public Domain. Use, modify, and redistribute at will. +// ---------------------------------------------------------------------------- + +double atof( const char * s ) { /* TODO */ }; +int atoi( const char * s ) { /* TODO */ }; +long atol( const char * s ) { /* TODO */ }; +long long atoll( const char * s) { /* TODO */ }; + +double strtod( const char * restrict s, char * * restrict endptr ) { /* TODO */ }; +float strtof( const char * restrict s, char * * restrict endptr ) { /* TODO */ }; +long double strtold( const char * restrict s, char * * restrict endptr ) { /* TODO */ }; + +long long strtoll( const char * restrict s, char * * restrict endptr, int base ) { /* TODO */ }; +unsigned long long strtoull( const char * restrict s, char * * restrict endptr, int base) { /* TODO */ }; + +long strtol( const char * restrict s, char * * restrict endptr, int base ) { /* TODO */ }; +unsigned long strtoul( const char * restrict s, char * * restrict endptr, int base) { /* TODO */ }; diff --git a/functions/stdlib/system.c b/functions/stdlib/system.c new file mode 100644 index 0000000..91e0ffa --- /dev/null +++ b/functions/stdlib/system.c @@ -0,0 +1,15 @@ +// ---------------------------------------------------------------------------- +// $Id$ +// ---------------------------------------------------------------------------- +// Public Domain C Library - http://pdclib.sourceforge.net +// This code is Public Domain. Use, modify, and redistribute at will. +// ---------------------------------------------------------------------------- + +void _Exit( int status ) { /* TODO */ }; +void exit( int status ) { /* TODO */ }; +void abort( void ) { /* TODO */ }; +char * getenv( const char * name ) { /* TODO */ }; +int system( const char * s ) { /* TODO */ }; + +// TODO: C/C++ linkages +int atexit( void (*func) ( void ) ) { /* TODO */ }; diff --git a/functions/stdlib/wcstombs.c b/functions/stdlib/wcstombs.c new file mode 100644 index 0000000..08a639f --- /dev/null +++ b/functions/stdlib/wcstombs.c @@ -0,0 +1,8 @@ +// ---------------------------------------------------------------------------- +// $Id$ +// ---------------------------------------------------------------------------- +// Public Domain C Library - http://pdclib.sourceforge.net +// This code is Public Domain. Use, modify, and redistribute at will. +// ---------------------------------------------------------------------------- + +size_t wcstombs( char * restrict s, const wchar_t * restrict wcs, size_t n ) { /* TODO */ }; diff --git a/functions/stdlib/wctomb.c b/functions/stdlib/wctomb.c new file mode 100644 index 0000000..ba31621 --- /dev/null +++ b/functions/stdlib/wctomb.c @@ -0,0 +1,8 @@ +// ---------------------------------------------------------------------------- +// $Id$ +// ---------------------------------------------------------------------------- +// Public Domain C Library - http://pdclib.sourceforge.net +// This code is Public Domain. Use, modify, and redistribute at will. +// ---------------------------------------------------------------------------- + +int wctomb( char * s, wchar_t wchar ) { /* TODO */ }; diff --git a/functions/string/memchr.c b/functions/string/memchr.c new file mode 100644 index 0000000..83d6f17 --- /dev/null +++ b/functions/string/memchr.c @@ -0,0 +1,17 @@ +// ---------------------------------------------------------------------------- +// $Id$ +// ---------------------------------------------------------------------------- +// Public Domain C Library - http://pdclib.sourceforge.net +// This code is Public Domain. Use, modify, and redistribute at will. +// ---------------------------------------------------------------------------- + +// ---------------------------------------------------------------------------- +// C++ + +const void * memchr( const void * s, int c, size_t n ) { /* TODO */ }; +void * memchr( void * s, int c, size_t n ) { /* TODO */ }; + +// ---------------------------------------------------------------------------- +// Standard C + +void * memchr( const void * s, int c, size_t n ) { /* TODO */ }; diff --git a/functions/string/memcmp.c b/functions/string/memcmp.c new file mode 100644 index 0000000..43b7e58 --- /dev/null +++ b/functions/string/memcmp.c @@ -0,0 +1,8 @@ +// ---------------------------------------------------------------------------- +// $Id$ +// ---------------------------------------------------------------------------- +// Public Domain C Library - http://pdclib.sourceforge.net +// This code is Public Domain. Use, modify, and redistribute at will. +// ---------------------------------------------------------------------------- + +int memcmp( const void * s1, const void * s2, size_t n ) { /* TODO */ }; diff --git a/functions/string/memcpy.c b/functions/string/memcpy.c new file mode 100644 index 0000000..d0da556 --- /dev/null +++ b/functions/string/memcpy.c @@ -0,0 +1,8 @@ +// ---------------------------------------------------------------------------- +// $Id$ +// ---------------------------------------------------------------------------- +// Public Domain C Library - http://pdclib.sourceforge.net +// This code is Public Domain. Use, modify, and redistribute at will. +// ---------------------------------------------------------------------------- + +void * memcpy( void * restrict s1, const void * restrict s2, size_t n ) { /* TODO */ }; diff --git a/functions/string/memmove.c b/functions/string/memmove.c new file mode 100644 index 0000000..9ecce5d --- /dev/null +++ b/functions/string/memmove.c @@ -0,0 +1,8 @@ +// ---------------------------------------------------------------------------- +// $Id$ +// ---------------------------------------------------------------------------- +// Public Domain C Library - http://pdclib.sourceforge.net +// This code is Public Domain. Use, modify, and redistribute at will. +// ---------------------------------------------------------------------------- + +void * memmove( void * s1, const void * s2, size_t n ) { /* TODO */ }; diff --git a/functions/string/memset.c b/functions/string/memset.c new file mode 100644 index 0000000..2771ae1 --- /dev/null +++ b/functions/string/memset.c @@ -0,0 +1,8 @@ +// ---------------------------------------------------------------------------- +// $Id$ +// ---------------------------------------------------------------------------- +// Public Domain C Library - http://pdclib.sourceforge.net +// This code is Public Domain. Use, modify, and redistribute at will. +// ---------------------------------------------------------------------------- + +void * memset( void * s, int c, size_t n ) { /* TODO */ }; diff --git a/functions/string/strcat.c b/functions/string/strcat.c new file mode 100644 index 0000000..cb0c0a1 --- /dev/null +++ b/functions/string/strcat.c @@ -0,0 +1,8 @@ +// ---------------------------------------------------------------------------- +// $Id$ +// ---------------------------------------------------------------------------- +// Public Domain C Library - http://pdclib.sourceforge.net +// This code is Public Domain. Use, modify, and redistribute at will. +// ---------------------------------------------------------------------------- + +char * strcat( char * restrict s1, const char * restrict s2 ) { /* TODO */ }; diff --git a/functions/string/strchr.c b/functions/string/strchr.c new file mode 100644 index 0000000..fb16904 --- /dev/null +++ b/functions/string/strchr.c @@ -0,0 +1,17 @@ +// ---------------------------------------------------------------------------- +// $Id$ +// ---------------------------------------------------------------------------- +// Public Domain C Library - http://pdclib.sourceforge.net +// This code is Public Domain. Use, modify, and redistribute at will. +// ---------------------------------------------------------------------------- + +// ---------------------------------------------------------------------------- +// C++ + +const char * strchr( const char * s, int c ) { /* TODO */ }; +char * strchr( char * s, int c ) { /* TODO */ }; + +// ---------------------------------------------------------------------------- +// Standard C + +char * strchr( const char * s, int c ) { /* TODO */ }; diff --git a/functions/string/strcmp.c b/functions/string/strcmp.c new file mode 100644 index 0000000..9906f49 --- /dev/null +++ b/functions/string/strcmp.c @@ -0,0 +1,8 @@ +// ---------------------------------------------------------------------------- +// $Id$ +// ---------------------------------------------------------------------------- +// Public Domain C Library - http://pdclib.sourceforge.net +// This code is Public Domain. Use, modify, and redistribute at will. +// ---------------------------------------------------------------------------- + +int strcmp( const char * s1, const char * s2 ) { /* TODO */ }; diff --git a/functions/string/strcoll.c b/functions/string/strcoll.c new file mode 100644 index 0000000..898eeb5 --- /dev/null +++ b/functions/string/strcoll.c @@ -0,0 +1,8 @@ +// ---------------------------------------------------------------------------- +// $Id$ +// ---------------------------------------------------------------------------- +// Public Domain C Library - http://pdclib.sourceforge.net +// This code is Public Domain. Use, modify, and redistribute at will. +// ---------------------------------------------------------------------------- + +int strcoll( const char * s1, const char * s2 ) { /* TODO */ }; diff --git a/functions/string/strcpy.c b/functions/string/strcpy.c new file mode 100644 index 0000000..1cc1c8e --- /dev/null +++ b/functions/string/strcpy.c @@ -0,0 +1,8 @@ +// ---------------------------------------------------------------------------- +// $Id$ +// ---------------------------------------------------------------------------- +// Public Domain C Library - http://pdclib.sourceforge.net +// This code is Public Domain. Use, modify, and redistribute at will. +// ---------------------------------------------------------------------------- + +char * strcpy( char * restrict s1, const char * restrict s2 ) { /* TODO */ }; diff --git a/functions/string/strcspn.c b/functions/string/strcspn.c new file mode 100644 index 0000000..80c620c --- /dev/null +++ b/functions/string/strcspn.c @@ -0,0 +1,8 @@ +// ---------------------------------------------------------------------------- +// $Id$ +// ---------------------------------------------------------------------------- +// Public Domain C Library - http://pdclib.sourceforge.net +// This code is Public Domain. Use, modify, and redistribute at will. +// ---------------------------------------------------------------------------- + +size_t strcspn( const char * s1, const char * s2 ) { /* TODO */ }; diff --git a/functions/string/strerror.c b/functions/string/strerror.c new file mode 100644 index 0000000..48dba0d --- /dev/null +++ b/functions/string/strerror.c @@ -0,0 +1,8 @@ +// ---------------------------------------------------------------------------- +// $Id$ +// ---------------------------------------------------------------------------- +// Public Domain C Library - http://pdclib.sourceforge.net +// This code is Public Domain. Use, modify, and redistribute at will. +// ---------------------------------------------------------------------------- + +char * strerror( int errcode ) { /* TODO */ }; diff --git a/functions/string/strlen.c b/functions/string/strlen.c new file mode 100644 index 0000000..62ab7a1 --- /dev/null +++ b/functions/string/strlen.c @@ -0,0 +1,8 @@ +// ---------------------------------------------------------------------------- +// $Id$ +// ---------------------------------------------------------------------------- +// Public Domain C Library - http://pdclib.sourceforge.net +// This code is Public Domain. Use, modify, and redistribute at will. +// ---------------------------------------------------------------------------- + +size_t strlen( const char * s ) { /* TODO */ }; diff --git a/functions/string/strncat.c b/functions/string/strncat.c new file mode 100644 index 0000000..624ac03 --- /dev/null +++ b/functions/string/strncat.c @@ -0,0 +1,8 @@ +// ---------------------------------------------------------------------------- +// $Id$ +// ---------------------------------------------------------------------------- +// Public Domain C Library - http://pdclib.sourceforge.net +// This code is Public Domain. Use, modify, and redistribute at will. +// ---------------------------------------------------------------------------- + +char * strncat( char * restrict s1, const char * restrict s2, size_t n ) { /* TODO */ }; diff --git a/functions/string/strncmp.c b/functions/string/strncmp.c new file mode 100644 index 0000000..d0434a5 --- /dev/null +++ b/functions/string/strncmp.c @@ -0,0 +1,8 @@ +// ---------------------------------------------------------------------------- +// $Id$ +// ---------------------------------------------------------------------------- +// Public Domain C Library - http://pdclib.sourceforge.net +// This code is Public Domain. Use, modify, and redistribute at will. +// ---------------------------------------------------------------------------- + +int strncmp( const char * s1, const char * s2, size_t n ) { /* TODO */ }; diff --git a/functions/string/strncpy.c b/functions/string/strncpy.c new file mode 100644 index 0000000..2d865d7 --- /dev/null +++ b/functions/string/strncpy.c @@ -0,0 +1,8 @@ +// ---------------------------------------------------------------------------- +// $Id$ +// ---------------------------------------------------------------------------- +// Public Domain C Library - http://pdclib.sourceforge.net +// This code is Public Domain. Use, modify, and redistribute at will. +// ---------------------------------------------------------------------------- + +char * strncpy( char * restrict s1, const char * restrict s2, size_t n ) { /* TODO */ }; diff --git a/functions/string/strpbrk.c b/functions/string/strpbrk.c new file mode 100644 index 0000000..78e2d65 --- /dev/null +++ b/functions/string/strpbrk.c @@ -0,0 +1,17 @@ +// ---------------------------------------------------------------------------- +// $Id$ +// ---------------------------------------------------------------------------- +// Public Domain C Library - http://pdclib.sourceforge.net +// This code is Public Domain. Use, modify, and redistribute at will. +// ---------------------------------------------------------------------------- + +// ---------------------------------------------------------------------------- +// C++ + +const char * strpbrk( const char * s1, const char * s2 ) { /* TODO */ }; +char * strpbrk( char * s1, const char * s2 ) { /* TODO */ }; + +// ---------------------------------------------------------------------------- +// Standard C + +char * strpbrk( const char *s1, const char * s2 ) { /* TODO */ }; diff --git a/functions/string/strrchr.c b/functions/string/strrchr.c new file mode 100644 index 0000000..4249de3 --- /dev/null +++ b/functions/string/strrchr.c @@ -0,0 +1,17 @@ +// ---------------------------------------------------------------------------- +// $Id$ +// ---------------------------------------------------------------------------- +// Public Domain C Library - http://pdclib.sourceforge.net +// This code is Public Domain. Use, modify, and redistribute at will. +// ---------------------------------------------------------------------------- + +// ---------------------------------------------------------------------------- +// C++ + +const char * strrchr( const char * s, int c ) { /* TODO */ }; +char * strrchr( char * s, int c ) { /* TODO */ }; + +// ---------------------------------------------------------------------------- +// Standard C + +char * strrchr( const char * s, int c ) { /* TODO */ }; diff --git a/functions/string/strspn.c b/functions/string/strspn.c new file mode 100644 index 0000000..47b2861 --- /dev/null +++ b/functions/string/strspn.c @@ -0,0 +1,8 @@ +// ---------------------------------------------------------------------------- +// $Id$ +// ---------------------------------------------------------------------------- +// Public Domain C Library - http://pdclib.sourceforge.net +// This code is Public Domain. Use, modify, and redistribute at will. +// ---------------------------------------------------------------------------- + +size_t strspn( const char * s1, const char * s2 ) { /* TODO */ }; diff --git a/functions/string/strstr.c b/functions/string/strstr.c new file mode 100644 index 0000000..b249423 --- /dev/null +++ b/functions/string/strstr.c @@ -0,0 +1,17 @@ +// ---------------------------------------------------------------------------- +// $Id$ +// ---------------------------------------------------------------------------- +// Public Domain C Library - http://pdclib.sourceforge.net +// This code is Public Domain. Use, modify, and redistribute at will. +// ---------------------------------------------------------------------------- + +// ---------------------------------------------------------------------------- +// C++ + +const char * strstr( const char * s1, const char * s2 ) { /* TODO */ }; +char * strstr( char * s1, const char * s2 ) { /* TODO */ }; + +// ---------------------------------------------------------------------------- +// Standard C + +char * strstr( const char * s1, const char * s2 ) { /* TODO */ }; diff --git a/functions/string/strtok.c b/functions/string/strtok.c new file mode 100644 index 0000000..1e588e8 --- /dev/null +++ b/functions/string/strtok.c @@ -0,0 +1,8 @@ +// ---------------------------------------------------------------------------- +// $Id$ +// ---------------------------------------------------------------------------- +// Public Domain C Library - http://pdclib.sourceforge.net +// This code is Public Domain. Use, modify, and redistribute at will. +// ---------------------------------------------------------------------------- + +char * strtok( char * restrict s1, const char * restrict s2 ) { /* TODO */ }; diff --git a/functions/string/strxfrm.c b/functions/string/strxfrm.c new file mode 100644 index 0000000..6f8a59e --- /dev/null +++ b/functions/string/strxfrm.c @@ -0,0 +1,8 @@ +// ---------------------------------------------------------------------------- +// $Id$ +// ---------------------------------------------------------------------------- +// Public Domain C Library - http://pdclib.sourceforge.net +// This code is Public Domain. Use, modify, and redistribute at will. +// ---------------------------------------------------------------------------- + +size_t strxfrm( char * restrict s1, const char * restrict s2, size_t n ) { /* TODO */ }; diff --git a/functions/time.c b/functions/time.c new file mode 100644 index 0000000..997e062 --- /dev/null +++ b/functions/time.c @@ -0,0 +1,17 @@ +// ---------------------------------------------------------------------------- +// $Id$ +// ---------------------------------------------------------------------------- +// Public Domain C Library - http://pdclib.sourceforge.net +// This code is Public Domain. Use, modify, and redistribute at will. +// ---------------------------------------------------------------------------- + +char * asctime( const struct tm * tptr ) { /* TODO */ }; +clock_t clock( void ) { /* TODO */ }; +char * ctime( const time_t * tod ) { /* TODO */ }; +double difftime( time_t t1, time_t t0 ) { /* TODO */ }; +struct tm * gmtime( const time_t * tod ) { /* TODO */ }; +struct tm * localtime( const time_t * tod ) { /* TODO */ }; +time_t mktime( struct tm * tptr ) { /* TODO */ }; +size_t strftime( char * restrict s, size_t n, const char * restrict format, + const struct tm * restrict tptr ) { /* TODO */ }; +time_t time( time_t * tod ) { /* TODO */ }; diff --git a/functions/wctype.c b/functions/wctype.c new file mode 100644 index 0000000..9d50564 --- /dev/null +++ b/functions/wctype.c @@ -0,0 +1,27 @@ +// ---------------------------------------------------------------------------- +// $Id$ +// ---------------------------------------------------------------------------- +// Public Domain C Library - http://pdclib.sourceforge.net +// This code is Public Domain. Use, modify, and redistribute at will. +// ---------------------------------------------------------------------------- + +int iswalnum( wint_t c ) { /* TODO */ }; +int iswalpha( wint_t c ) { /* TODO */ }; +int iswblank( wint_t c ) { /* TODO */ }; +int iswcntrl( wint_t c ) { /* TODO */ }; +int iswctype( wint_t c, wctype_t category ) { /* TODO */ }; +int iswdigit( wint_t c ) { /* TODO */ }; +int iswgraph( wint_t c ) { /* TODO */ }; +int iswlower( wint_t c ) { /* TODO */ }; +int iswprint( wint_t c ) { /* TODO */ }; +int iswpunct( wint_t c ) { /* TODO */ }; +int iswspace( wint_t c ) { /* TODO */ }; +int iswupper( wint_t c ) { /* TODO */ }; +int iswxdigit( wint_t c ) { /* TODO */ }; + +wint_t towctrans( wint_t c, wctrans_t category ) { /* TODO */ }; +wint_t towlower( wint_t c ) { /* TODO */ }; +wint_t towupper( wint_t c ) { /* TODO */ }; + +wctrans_t wctrans( const char * property ) { /* TODO */ }; +wctype_t wctype( const char * property ) { /* TODO */ };