source: soft/giet_vm/giet_libs/stdlib.h @ 580

Last change on this file since 580 was 580, checked in by laurent, 9 years ago

Try

File size: 2.1 KB
Line 
1//////////////////////////////////////////////////////////////////////////////////
2// File     : stdlib.h
3// Date     : 05/12/2013
4// Author   : Clément DEVIGNE
5// Copyright (c) UPMC-LIP6
6///////////////////////////////////////////////////////////////////////////////////
7
8#ifndef _STDLIB_H
9#define _STDLIB_H
10
11////////////////////////////////////////////////////////////////////////////////////////
12// This function translate a character string to a signed integer. 
13// For a negative value, the first character must be a '-' (minus) character.
14////////////////////////////////////////////////////////////////////////////////////////
15int atoi ( const char * str );
16
17////////////////////////////////////////////////////////////////////////////////////////
18// This function translate a character string to a double. 
19// For a negative value, the first character must be a '-' (minus) character.
20////////////////////////////////////////////////////////////////////////////////////////
21double atof ( const char * str );
22
23////////////////////////////////////////////////////////////////////////////////////////
24// This function copies size bytes from the src source buffer
25// to the dst destination buffer.
26// GCC requires this function. Taken from MutekH.
27////////////////////////////////////////////////////////////////////////////////////////
28void* memcpy( void*         dst, 
29              const void*   src, 
30              unsigned int  size );
31
32////////////////////////////////////////////////////////////////////////////////////////
33// This function initializes size bytes in the dst destination buffer,
34// with the value defined by (char)s.
35// GCC requires this function. Taken from MutekH.
36////////////////////////////////////////////////////////////////////////////////////////
37inline void* memset( void*        dst,
38                     int          s, 
39                     unsigned int size );
40
41#endif
42
43// Local Variables:
44// tab-width: 4
45// c-basic-offset: 4
46// c-file-offsets:((innamespace . 0)(inline-open . 0))
47// indent-tabs-mode: nil
48// End:
49// vim: filetype=c:expandtab:shiftwidth=4:tabstop=4:softtabstop=4
Note: See TracBrowser for help on using the repository browser.