]>
git.saurik.com Git - apple/libdispatch.git/blob - testing/apply_strtoull.c
15 main(int argc
, char *argv
[])
24 fprintf(stderr
, "usage: %s <file>\n", argv
[0]);
28 fd
= open(argv
[1], O_RDONLY
);
35 fprintf(stderr
, "The file is zero length.\n");
39 map
= mmap(NULL
, sb
.st_len
, PROT_READ
, MAP_FILE
, fd
, 0);
40 assert(map
!= MAP_FAILED
);
42 numbers
= malloc(sb
.st_len
* sizeof(void *)); /* more than enough */
48 for (i
= 0; i
< sb
.st_len
; i
++) {
57 ; i
< sb
.st_len
; i
++) {
61 dispatch_apply(b
, cnt
);