Does anyone know of a function that can turn an int into a five character array plus a null terminator.

e.g. If the int where 12345 it would turn it into:
Code:
byte[0] = 0x49;
byte[1] = 0x50;
byte[2] = 0x51;
byte[3] = 0x52;
byte[4] = 0x53;
byte[5] = 0x00;
or the string "12345" pluss a null terminator.

e.g. If the int where 0 it would turn it into:
Code:
byte[0] = 0x48;
byte[1] = 0x48;
byte[2] = 0x48;
byte[3] = 0x48;
byte[4] = 0x48;
byte[5] = 0x00;
or the string "00000" pluss a null terminator.