aboutsummaryrefslogtreecommitdiff
path: root/lib/string.h
blob: 460057c2d4cf061da6d6005c14e18d877a76a72f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#pragma once

#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