1 2 3 4 5 6 7 8 9 10
#include <lib.h> char itoc(int i) { if (i < 10) { return '0' + i; } else { return 'a' + (i - 10); } }