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.h

    r444 r445  
    11/*
    2  * stdlib.h - User level library definition.
     2 * stdlib.h - User level <stdlib> library definition.
    33 *
    44 * Author     Alain Greiner (2016,2017)
     
    2525#define _STDLIB_H
    2626
    27 #include <almos-mkh/stdlib.h>
     27/*****************************************************************************************
     28 * This file defines the user side <stdlib> library.
     29 * Some functions make a system call to access the kernel VFS.
     30 * The user/kernel shared structures and mnemonics are defined in
     31 * the <syscalls/shared_include/shared_fcntl.h> file.
     32 ****************************************************************************************/
     33
     34#include <shared_stdlib.h>
    2835
    2936/*****************************************************************************************
     
    3441void exit( int status );
    3542
     43/*********************************************************************************************
     44 * This function translates an ascii character string to an integer value.
     45 *********************************************************************************************
     46 * @ str   : pointer on charactter string.
     47 * @ return an integer value.
     48 ********************************************************************************************/
     49int atoi(const char * str );
    3650
    3751/*********************************************************************************************
    38  * This function TODO
     52 * This function translates an ascii character string to a float value.
    3953 *********************************************************************************************
     54 * @ str   : pointer on charactter string.
     55 * @ return a double value.
    4056 ********************************************************************************************/
    41 int atoi(const char *str);
    42 
    43 /*********************************************************************************************
    44  * This function TODO
    45  *********************************************************************************************
    46  ********************************************************************************************/
    47 double atof(const char *str);
     57double atof(const char * str );
    4858
    4959/*********************************************************************************************
     
    7282 ****************************************************************************************/
    7383void * malloc( unsigned int size );
    74 
    7584
    7685/*****************************************************************************************
     
    109118void * calloc( unsigned int count,
    110119               unsigned int size );
     120
    111121#endif  // _STDLIB_H_
Note: See TracChangeset for help on using the changeset viewer.