Changes between Version 4 and Version 5 of library_stdlib


Ignore:
Timestamp:
Jul 19, 2015, 8:01:22 PM (9 years ago)
Author:
alain
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • library_stdlib

    v4 v5  
    44files define a set of useful functions that do not require a system call.
    55
    6  * int '''atoi'''( char * string )
     6 == int '''atoi'''( char * string ) ==
    77This function translate a character string to a signed integer. All characters (but the first) must be digits.
    88For a negative value, the  first character must be the '-' (minus) character.
    99
    10  * double '''atof'''( char * string )'''
     10 == double '''atof'''( char * string ) ==
    1111This function translate a character string to a double. Conversion stop at first non-numeric character (except a first '+' or '-' and one '.').
    1212
    13  * void* '''memcpy'''( void* dst, const void* src, unsigned int size )
     13 == void* '''memcpy'''( void* dst, const void* src, unsigned int size ) ==
    1414This function copies ''size'' bytes from the ''src'' source buffer to the ''dst'' destination buffer.
    1515
    16  * void* '''memset'''( void* dst , int s , unsigned int size )
     16 == void* '''memset'''( void* dst , int s , unsigned int size ) ==
    1717This function initializes ''size'' bytes in the ''dst'' destination buffer, with the value defined by ''(char)s''.
    1818
    19  * unsigned int '''strlen'''( char* string )
     19 == unsigned int '''strlen'''( char* string ) ==
    2020This function returns the number of characters in a string. The terminating NUL character is not taken into account.
    2121
    22  * unsigned int '''strcmp'''( char* s1 , char* s2 )
     22 * unsigned int '''strcmp'''( char* s1 , char* s2 ) ==
    2323This function compare the two s1 & s2 strings.It returns 0 if strings are identical (including the terminating NUL character),
    2424and returns 1 if they are not.
    2525
    26  * unsigned int '''strcpy'''( char* dest , char* source )
     26 == unsigned int '''strcpy'''( char* dest , char* source ) ==
    2727This function copies the source string to the dest string.It returns a pointer on the dest string.
    2828