Bash-4.3 distribution sources and documentation
This commit is contained in:
parent
4539d736f1
commit
ac50fbac37
497 changed files with 129395 additions and 87598 deletions
|
|
@ -50,6 +50,18 @@ itos (i)
|
|||
return (savestring (p));
|
||||
}
|
||||
|
||||
/* Integer to string conversion. This conses the string using strdup;
|
||||
caller should free it and be prepared to deal with NULL return. */
|
||||
char *
|
||||
mitos (i)
|
||||
intmax_t i;
|
||||
{
|
||||
char *p, lbuf[INT_STRLEN_BOUND(intmax_t) + 1];
|
||||
|
||||
p = fmtumax (i, 10, lbuf, sizeof(lbuf), 0);
|
||||
return (strdup (p));
|
||||
}
|
||||
|
||||
char *
|
||||
uinttostr (i, buf, len)
|
||||
uintmax_t i;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue