mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-07-12 22:19:10 +00:00
Make improvements
- Bump redbean up to 2.0 - Trim down the MODE=tiny build a bit - Add Indian Standard Time to zoneinfo
This commit is contained in:
parent
c9a981fdbe
commit
7aafa64ab3
17 changed files with 233 additions and 179 deletions
|
@ -7,8 +7,9 @@
|
|||
│ • http://creativecommons.org/publicdomain/zero/1.0/ │
|
||||
╚─────────────────────────────────────────────────────────────────*/
|
||||
#endif
|
||||
#include "libc/calls/calls.h"
|
||||
#include "libc/fmt/conv.h"
|
||||
#include "libc/stdio/stdio.h"
|
||||
#include "libc/fmt/itoa.h"
|
||||
|
||||
/**
|
||||
* @fileoverview Prints sequence of numbers.
|
||||
|
@ -16,6 +17,7 @@
|
|||
|
||||
int main(int argc, char *argv[]) {
|
||||
long a, b, i;
|
||||
char buf[21], *p;
|
||||
switch (argc) {
|
||||
case 2:
|
||||
a = 1;
|
||||
|
@ -29,6 +31,9 @@ int main(int argc, char *argv[]) {
|
|||
return 1;
|
||||
}
|
||||
for (i = a; i <= b; ++i) {
|
||||
printf("%ld\n", i);
|
||||
p = buf;
|
||||
p = FormatInt64(p, i);
|
||||
*p++ = '\n';
|
||||
write(1, buf, p - buf);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue