Changes between Version 3 and Version 4 of library_stdlib


Ignore:
Timestamp:
Jul 19, 2015, 7:59:18 PM (9 years ago)
Author:
alain
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • library_stdlib

    v3 v4  
    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''.
     18
     19 * unsigned int '''strlen'''( char* string )
     20This function returns the number of characters in a string. The terminating NUL character is not taken into account.
     21
     22 * unsigned int '''strcmp'''( char* s1 , char* s2 )
     23This function compare the two s1 & s2 strings.It returns 0 if strings are identical (including the terminating NUL character),
     24and returns 1 if they are not.
     25
     26 * unsigned int '''strcpy'''( char* dest , char* source )
     27This function copies the source string to the dest string.It returns a pointer on the dest string.
     28
     29