-/* _PDCLIB_fvopen( _PDCLIB_fd_t fd, _PDCLIB_fileops_t * )\r
+/* _PDCLIB_fvopen( _PDCLIB_fd_t, _PDCLIB_fileops_t * )\r
\r
This file is part of the Public Domain C Library (PDCLib).\r
Permission is granted to use, modify, and / or redistribute at will.\r
-/* _cbprintf( void *, size_t (*)( void*, const char *, size_t ), const char *, ... )
+/* _cbprintf( void *, size_t (*)( void *, const char *, size_t ), const char *, ... )
This file is part of the Public Domain C Library (PDCLib).
Permission is granted to use, modify, and / or redistribute at will.
-/* vsnprintf( char *, size_t, const char *, va_list ap )
+/* vsnprintf( char *, size_t, const char *, va_list )
This file is part of the Public Domain C Library (PDCLib).
Permission is granted to use, modify, and / or redistribute at will.
-/* fseek( FILE *, long offset, int )
+/* fseek( FILE *, long, int )
This file is part of the Public Domain C Library (PDCLib).
Permission is granted to use, modify, and / or redistribute at will.
-/* ftrylockfile(FILE * )\r
+/* ftrylockfile( FILE * )\r
\r
This file is part of the Public Domain C Library (PDCLib).\r
Permission is granted to use, modify, and / or redistribute at will.\r
-/* funlockfile(FILE * )\r
+/* funlockfile( FILE * )\r
\r
This file is part of the Public Domain C Library (PDCLib).\r
Permission is granted to use, modify, and / or redistribute at will.\r
-/* vprintf( const char *, va_list arg )
+/* vprintf( const char *, va_list )
This file is part of the Public Domain C Library (PDCLib).
Permission is granted to use, modify, and / or redistribute at will.
-/* vscanf( const char *, va_list arg )
+/* vscanf( const char *, va_list )
This file is part of the Public Domain C Library (PDCLib).
Permission is granted to use, modify, and / or redistribute at will.
-/* vsnprintf( char *, size_t, const char *, va_list ap )
+/* vsnprintf( char *, size_t, const char *, va_list )
This file is part of the Public Domain C Library (PDCLib).
Permission is granted to use, modify, and / or redistribute at will.
-/* vsprintf( char *, const char *, va_list ap )
+/* vsprintf( char *, const char *, va_list )
This file is part of the Public Domain C Library (PDCLib).
Permission is granted to use, modify, and / or redistribute at will.
-/* vsscanf( const char *, const char *, va_list arg )
+/* vsscanf( const char *, const char *, va_list )
This file is part of the Public Domain C Library (PDCLib).
Permission is granted to use, modify, and / or redistribute at will.
-/* [XSI] char* strdup(const char *)\r
+/* [XSI] char * strdup( const char * )\r
\r
This file is part of the Public Domain C Library (PDCLib).\r
Permission is granted to use, modify, and / or redistribute at will.\r
-/* strlcat(
- char *_PDCLIB_restrict _Dst,
- const char *_PDCLIB_restict _Src,
- size_t _DstSize)
+/* strlcat( char *, const char *, size_t )
This file is part of the Public Domain C Library (PDCLib).
Permission is granted to use, modify, and / or redistribute at will.
-/* strlcpy(
- char *_PDCLIB_restrict _Dst,
- const char *_PDCLIB_restrict _Src,
- size_t _DstSize)
+/* strlcpy( char *, const char *, size_t )
This file is part of the Public Domain C Library (PDCLib).
Permission is granted to use, modify, and / or redistribute at will.
-/* [XSI] char* strndup(const char *, size_t)\r
+/* [XSI] char * strndup( const char *, size_t )\r
\r
This file is part of the Public Domain C Library (PDCLib).\r
Permission is granted to use, modify, and / or redistribute at will.\r
--- /dev/null
+/* clock( void )
+
+ This file is part of the Public Domain C Library (PDCLib).
+ Permission is granted to use, modify, and / or redistribute at will.
+*/
+
+#include <time.h>
+
+#ifndef REGTEST
+
+clock_t clock( void )
+{
+ /* TODO: Placeholder implementation (valid but useless) */
+ return -1;
+}
+
+#endif
+
+#ifdef TEST
+#include <_PDCLIB_test.h>
+
+int main( void )
+{
+ TESTCASE( NO_TESTDRIVER );
+ return TEST_RESULTS;
+}
+
+#endif
-/* _PDCLIB_c32srtombs(
- char *_PDCLIB_restrict dst,
- const char32_t **_PDCLIB_restrict src,
- size_t len,
- mbstate_t *_PDCLIB_restrict ps);
+/* _PDCLIB_c32srtombs( char *, const char32_t * *, size_t, mbstate_t * )
This file is part of the Public Domain C Library (PDCLib).
Permission is granted to use, modify, and / or redistribute at will.
-/* _PDCLIB_mbsrtoc32s(
- char32_t *restrict dst,
- const char **restrict src,
- size_t len,
- mbstate_t *restrict ps);
+/* _PDCLIB_mbsrtoc32s( char32_t *, const char * *, size_t, mbstate_t * )
This file is part of the Public Domain C Library (PDCLib).
Permission is granted to use, modify, and / or redistribute at will.
-/* c16rtomb(\r
- char *restrict s, \r
- char16_t c16,\r
- mbstate_t *restrict ps);\r
+/* c16rtomb( char *, char16_t, mbstate_t * )\r
\r
This file is part of the Public Domain C Library (PDCLib).\r
Permission is granted to use, modify, and / or redistribute at will.\r
-/* c32rtomb(
- char *restrict s,
- char32_t c32,
- mbstate_t *restrict ps);
+/* c32rtomb( char *, char32_t, mbstate_t * )
This file is part of the Public Domain C Library (PDCLib).
Permission is granted to use, modify, and / or redistribute at will.
-/* size_t mbrtoc16(\r
- char16_t *restrict pc16,\r
- const char *restrict s, \r
- size_t n,\r
- mbstate_t *restrict ps);\r
+/* size_t mbrtoc16( char16_t *, const char *, size_t, mbstate_t * )\r
\r
This file is part of the Public Domain C Library (PDCLib).\r
Permission is granted to use, modify, and / or redistribute at will.\r
-/* size_t mbrtoc32(
- char32_t *restrict pc32,
- const char *restrict s,
- size_t n,
- mbstate_t *restrict ps);
+/* size_t mbrtoc32( char32_t *, const char *, size_t, mbstate_t * )
This file is part of the Public Domain C Library (PDCLib).
Permission is granted to use, modify, and / or redistribute at will.
-/* mbrtowc(
- wchar_t *restrict pwc,
- const char *restrict s,
- size_t n,
- mbstate_t *restrict ps);
+/* mbrtowc( wchar_t * pwc, const char * s, size_t n, mbstate_t * ps )
This file is part of the Public Domain C Library (PDCLib).
Permission is granted to use, modify, and / or redistribute at will.
-/* mbsinit(mbstate_t *ps);\r
+/* mbsinit( mbstate_t * ps )\r
\r
This file is part of the Public Domain C Library (PDCLib).\r
Permission is granted to use, modify, and / or redistribute at will.\r
-/* wcrtomb(
- char *restrict s,
- wchar_t wc,
- mbstate_t *restrict ps);
+/* wcrtomb( char * s, wchar_t wc, mbstate_t * ps )
This file is part of the Public Domain C Library (PDCLib).
Permission is granted to use, modify, and / or redistribute at will.
-/* wchar_t * wcscpy( wchar_t restrict *, const wchar_t restrict * );\r
+/* wchar_t * wcscpy( wchar_t *, const wchar_t * );\r
\r
This file is part of the Public Domain C Library (PDCLib).\r
Permission is granted to use, modify, and / or redistribute at will.\r
-/* wchar_t * wcsncpy( wchar_t restrict *, const wchar_t restrict * , size_t );\r
+/* wchar_t * wcsncpy( wchar_t *, const wchar_t * , size_t );\r
\r
This file is part of the Public Domain C Library (PDCLib).\r
Permission is granted to use, modify, and / or redistribute at will.\r