This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdint.h> | |
#include <stdio.h> | |
char *sprint_int_(char *out, uint64_t a, uint64_t base) { | |
char itoc[] = "0123456789abcdef"; | |
char *orig_out = out; | |
uint64_t a_ = a; | |
int i = 0; | |
while (a_ >= base) { | |
a_ /= base; | |
i++; |
OlderNewer