mirror of
https://github.com/CTCaer/hekate.git
synced 2024-11-23 02:16:41 +00:00
bdk: sprintf: no support for lower case hex and base that is not 10/16
This commit is contained in:
parent
2c768db542
commit
429074293a
1 changed files with 9 additions and 8 deletions
|
@ -36,13 +36,14 @@ static void _s_puts(char *s)
|
||||||
|
|
||||||
static void _s_putn(u32 v, int base, char fill, int fcnt)
|
static void _s_putn(u32 v, int base, char fill, int fcnt)
|
||||||
{
|
{
|
||||||
char buf[65];
|
static const char digits[] = "0123456789ABCDEF";
|
||||||
static const char digits[] = "0123456789ABCDEFghijklmnopqrstuvwxyz";
|
|
||||||
char *p;
|
char *p;
|
||||||
|
char buf[65];
|
||||||
int c = fcnt;
|
int c = fcnt;
|
||||||
bool negative = false;
|
bool negative = false;
|
||||||
|
|
||||||
if (base > 36)
|
if (base != 10 && base != 16)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
// Account for negative numbers.
|
// Account for negative numbers.
|
||||||
|
|
Loading…
Reference in a new issue