summaryrefslogtreecommitdiff
path: root/include/wolf/port/stdlib.h
blob: c8afeb85bb001cdfca4c8ccdebe57154be476b4d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
/*
    Copyright (C) 2008 Andreas Baumann <abaumann@yahoo.com>

    This program is free software: you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
    the Free Software Foundation, either version 3 of the License, or
    (at your option) any later version.

    This program is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    GNU General Public License for more details.

    You should have received a copy of the GNU General Public License
    along with this program.  If not, see <http://www.gnu.org/licenses/>.
*/

#ifndef WOLF_STDLIB_H
#define WOLF_STDLIB_H

/**
 * @addtogroup wolf_port Porting
 * @{
 */

/**
 * @file stdlib.h
 * @brief nivelate things found in stdlib.h, e.g itoa
 * @author Andreas Baumann <abaumann@yahoo.com>
 */

#include "port/sys.h"

#include <stdlib.h>

#if !defined HAVE_ITOA || defined TEST_ITOA
char *wolf_port_itoa( int value, char *string, int radix );
#endif /* !defined HAVE_ITOA || defined TEST_ITOA */
#if !defined HAVE_ITOA
#define itoa( value, string, radix ) wolf_port_itoa( value, string, radix )
#endif /* !defined HAVE_ITOA */

/** @} */ /* @addtogroup wolf_port */

#endif /* ifndef WOLF_STDLIB_H */