elks-enhanced
public
Read
Owner: themaster
Branch: master
Commits: 6893
Updated: 2026-04-19 00:15
Git CLI clone URL
git clone https://www.xt-emporium.com/git/elks-enhanced.git
Fullscreen desktop URL
Code
Commits
History
Branches
Bug Reports
Discussions
Compare
Settings
elks-enhanced
/
libc
/
misc
/
ultoa.c
File editor
#include <stdlib.h> #define MAX_LONG_CHARS 34 /* small unsigned long to ascii */ char *ultoa(unsigned long i) { static char buf[MAX_LONG_CHARS]; char *b = buf + sizeof(buf) - 1; *b = '\0'; #ifdef _M_I86 do { unsigned int c; c = 10; i = __divmod(i, &c); *--b = '0' + c; } while (i); #else do { *--b = '0' + (i % 10); } while ((i /= 10) != 0); #endif return b; }
Commit message
This repository is read-only for this account.
Repository snapshot
Current branch
master
Visibility
public
Your access
Read
Remote
Configured
File activity
View file history