diff options
-rw-r--r-- | xdu.c | 16 |
1 files changed, 1 insertions, 15 deletions
diff --git a/xdu.c b/xdu.c index 8d5f4f4..fb44488 100644 --- a/xdu.c +++ b/xdu.c @@ -608,24 +608,10 @@ pwd(void) if (num != 0) strcat(path,"/"); } - printf("%s %d (%.2f%%)\n", path, topp->size, + printf("%s %jd (%.2f%%)\n", path, (intmax_t)topp->size, 100.0*topp->size/rootp->size); } -char * -strdup(s) -char *s; -{ - int n; - char *cp; - - n = strlen(s); - cp = malloc(n+1); - strcpy(cp,s); - - return cp; -} - /**************** External Entry Points ****************/ void |