00001 00009 /* 00010 * The contents of this file are subject to the Mozilla Public License 00011 * Version 1.0 (the "License"); you may not use this file except in 00012 * compliance with the License. You may obtain a copy of the License 00013 * at http://www.mozilla.org/MPL/ 00014 * 00015 * Software distributed under the License is distributed on an "AS IS" 00016 * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See 00017 * the License for the specific language governing rights and 00018 * limitations under the License. 00019 * 00020 * The Original Code is legOS code, released October 17, 1999. 00021 * 00022 * The Initial Developer of the Original Code is Markus L. Noga. 00023 * Portions created by Markus L. Noga are Copyright (C) 1999 00024 * Markus L. Noga. All Rights Reserved. 00025 * 00026 * Contributor(s): Markus L. Noga <markus@noga.de> 00027 */ 00028 00029 #ifndef __stdlib_h__ 00030 #define __stdlib_h__ 00031 00032 #ifdef __cplusplus 00033 extern "C" { 00034 #endif 00035 00036 #include <mem.h> 00037 00039 // 00040 // Functions 00041 // 00043 00044 // 00045 // Standard memory management. 00046 // See the Linux man pages for details. 00047 // 00048 00050 00061 extern void *calloc(size_t nmemb, size_t size); 00062 00064 00070 extern void *malloc(size_t size); 00071 00073 00080 extern void free(void *ptr); 00081 00083 00086 extern long int random(void); 00088 00096 extern void srandom(unsigned int seed); 00097 00098 #ifdef __cplusplus 00099 } 00100 #endif 00101 00102 #endif // __stdlib_h__
brickOS is released under the
Mozilla Public License.
Original code copyright 1998-2002 by the authors. |