Changeset 445 for trunk/libs/mini-libc/stdlib.c
- Timestamp:
- May 29, 2018, 9:27:23 AM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/libs/mini-libc/stdlib.c
r444 r445 1 1 /* 2 * stdlib.c - User level Clibrary implementation.2 * stdlib.c - User level <stdlib> library implementation. 3 3 * 4 4 * Author Alain Greiner (2016,2017) … … 23 23 24 24 #include <stdlib.h> 25 #include <hal_types.h> 26 #include <hal_user.h> 27 #include <almosmkh.h> 25 28 #include <stdio.h> 26 #include <almos-mkh.h>27 #include <hal_user.h>28 29 #include <syscalls_numbers.h> 29 30 30 #define reg_t int31 31 ////////////////////////// 32 32 int atoi(const char * str) … … 114 114 } 115 115 116 117 118 116 ////////// 119 117 int rand() … … 141 139 } 142 140 143 144 145 146 141 ////////////////////////////////// 147 142 void * malloc( unsigned int size ) … … 154 149 return remote_malloc( size, cxy ); 155 150 } 156 157 158 151 159 152 ///////////////////////////////////
Note: See TracChangeset
for help on using the changeset viewer.