Ignore:
Timestamp:
May 29, 2018, 9:27:23 AM (6 years ago)
Author:
alain
Message:

Restructure the mini_libc.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libs/mini-libc/stdlib.c

    r444 r445  
    11/*
    2  * stdlib.c - User level C library implementation.
     2 * stdlib.c - User level <stdlib> library implementation.
    33 *
    44 * Author     Alain Greiner (2016,2017)
     
    2323
    2424#include <stdlib.h>
     25#include <hal_types.h>
     26#include <hal_user.h>
     27#include <almosmkh.h>
    2528#include <stdio.h>
    26 #include <almos-mkh.h>
    27 #include <hal_user.h>
    2829#include <syscalls_numbers.h>
    2930
    30 #define  reg_t     int
    3131//////////////////////////
    3232int atoi(const char * str)
     
    114114}
    115115
    116 
    117 
    118116//////////
    119117int rand()
     
    141139}
    142140
    143 
    144 
    145 
    146141//////////////////////////////////
    147142void * malloc( unsigned int size )
     
    154149    return remote_malloc( size, cxy );
    155150}
    156 
    157 
    158151
    159152///////////////////////////////////
Note: See TracChangeset for help on using the changeset viewer.