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
/
itoa.c
File editor
/* Apr 2020 Greg Haerr - handles INT_MIN */ #include <stdlib.h> #define MAX_INT_CHARS 7 char *itoa(int val) { static char buf[MAX_INT_CHARS]; char *b = buf + sizeof(buf) - 1; unsigned int u = (val < 0)? 0u - val: val; *b = '\0'; do { *--b = '0' + (u % 10); } while ((u /= 10) != 0); if (val < 0) *--b = '-'; 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