Changes between Initial Version and Version 1 of library_stdlib


Ignore:
Timestamp:
Aug 5, 2014, 1:24:41 PM (10 years ago)
Author:
alain
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • library_stdlib

    v1 v1  
     1= The stdlib library =
     2
     3The [source:soft/giet_vm/giet_libs/stdlib.c stdlib.c] and [source:soft/giet_vm/giet_libs/stdlib.h stdlib.h]
     4files define a set of useful functions that does not require a system call.
     5
     6 * '''int atoi( char * string )'''
     7This function translate a character string to a signed integer. All characters (but the first) must be digits.
     8For a negative value, the  first character must be the '-' (minus) character.
     9
     10 *'''void* memcpy( void* dst, const void* src, unsigned int size )'''
     11This function copies ''size'' bytes from the ''src'' source buffer to the ''dst'' destination buffer.
     12
     13 * '''void* memset( void* dst, int s, unsigned int size )'''
     14This function initializes ''size'' bytes in the ''dst'' destination buffer, with the value defined by ''(char)s''.