Large file >2Gib support.
This commit is contained in:
1 parent
350b3f9236
commit
8a2e56c5df
5 files changed
+38
No files matched your search
@@ -123,7 +123,11 @@ extern int more_main(int argc, char **argv)
|
||||
lines = 0;
|
||||
len = fprintf(stdout, "--More-- ");
|
||||
if (file != stdin) {
|
||||
#if _FILE_OFFSET_BITS == 64
|
||||
len += fprintf(stdout, "(%d%% of %lld bytes)",
|
||||
#else
|
||||
len += fprintf(stdout, "(%d%% of %ld bytes)",
|
||||
#endif
|
||||
(int) (100 *
|
||||
((double) ftell(file) /
|
||||
(double) st.st_size)),
|
||||
|
||||
Reference in new issue
Block a user