mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-05-22 21:32:31 +00:00
Do code cleanup use duff device linenoise i/o
This commit is contained in:
parent
6ff46ca373
commit
2f56ebfe78
79 changed files with 1393 additions and 1484 deletions
|
@ -25,12 +25,12 @@
|
|||
char *inet_ntoa(struct in_addr in) {
|
||||
static char buf[16];
|
||||
char *p = buf;
|
||||
p += int64toarray_radix10((in.s_addr >> 000) & 255, p);
|
||||
p = FormatUint32(p, (in.s_addr >> 000) & 255);
|
||||
*p++ = '.';
|
||||
p += int64toarray_radix10((in.s_addr >> 010) & 255, p);
|
||||
p = FormatUint32(p, (in.s_addr >> 010) & 255);
|
||||
*p++ = '.';
|
||||
p += int64toarray_radix10((in.s_addr >> 020) & 255, p);
|
||||
p = FormatUint32(p, (in.s_addr >> 020) & 255);
|
||||
*p++ = '.';
|
||||
p += int64toarray_radix10((in.s_addr >> 030) & 255, p);
|
||||
p = FormatUint32(p, (in.s_addr >> 030) & 255);
|
||||
return buf;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue