aboutsummaryrefslogtreecommitdiff
path: root/lib/string.h
blob: c8196c8e2249fe94ab8bbd9c20ffa45fb24951d0 (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
#pragma once

///@defgroup libk libk
///@{
///@defgroup string string
///@{

#define OCTAL 8
#define DECIMAL 10
#define HEX 16

#ifdef __cplusplus
extern "C" {
#endif
/**
 * Convert int into a string
 */
char *itoa(char *p, int x, int base);
/**
 * Convert unsigned int into a string
 */
char *utoa(char *p, unsigned x, int base);
#ifdef __cplusplus
}
#endif

///@}
///@}