aboutsummaryrefslogtreecommitdiff
path: root/lib/string.h
blob: 1eb3da246e04af62034db29419aca5812c15880e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#pragma once

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

/**
 * 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);