This repository has been archived on 2022-05-31. You can view files and clone it, but cannot push or open issues or pull requests.
Luma3DS-3GX/sysmodules/loader/source/strings.c

12 lines
237 B
C
Raw Normal View History

2016-09-06 14:09:29 +02:00
#include "strings.h"
void progIdToStr(char *strEnd, u64 progId)
{
2016-09-23 13:58:59 +02:00
while(progId > 0)
2016-09-06 14:09:29 +02:00
{
static const char hexDigits[] = "0123456789ABCDEF";
*strEnd-- = hexDigits[(u32)(progId & 0xF)];
progId >>= 4;
}
}