]> pd.if.org Git - pdclib/blob - platform/example/functions/_PDCLIB/allocpages.c
* platform/example is now a "stub" platform - it should compile anywhere, but
[pdclib] / platform / example / functions / _PDCLIB / allocpages.c
1 /* $Id$ */
2
3 /* _PDCLIB_allocpages( int const )
4
5    This file is part of the Public Domain C Library (PDCLib).
6    Permission is granted to use, modify, and / or redistribute at will.
7 */
8
9 /* This is a stub implementation of _PDCLIB_allocpages
10 */
11
12 #include <stdint.h>
13 #include <stddef.h>
14 #include <_PDCLIB_glue.h>
15 #include <errno.h>
16
17 static void * membreak = NULL;
18
19 void * _PDCLIB_allocpages( size_t n )
20 {
21     errno = ENOTSUP;
22     return NULL;
23 }
24
25 #ifdef TEST
26 #include <_PDCLIB_test.h>
27
28 int main( void )
29 {
30     return TEST_RESULTS;
31 }
32
33 #endif