chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
[PATCH] update klibc to version 0.181
[elogind.git]
/
klibc
/
klibc
/
tests
/
strtoimax.c
1
/*
2
* strtoimaxtest.c
3
*/
4
5
#include <stdio.h>
6
#include <stdlib.h>
7
#include <inttypes.h>
8
9
int main(int argc, char *argv[])
10
{
11
int i;
12
char *ep;
13
intmax_t iv;
14
15
for ( i = 1 ; i < argc ; i++ ) {
16
iv = strtoimax(argv[i], &ep, 0);
17
printf("strtoimax(\"%s\") = %jd\n", argv[i], iv);
18
if ( *ep )
19
printf(" ep = \"%s\"\n", ep);
20
}
21
22
return 0;
23
}
24