summaryrefslogtreecommitdiffstats
path: root/src/cmd/venti/unittoull.c
diff options
context:
space:
mode:
authorrsc <devnull@localhost>2005-01-18 05:25:09 +0000
committerrsc <devnull@localhost>2005-01-18 05:25:09 +0000
commitadbb83845c5d3cb02343d7613cfb8385aa909909 (patch)
tree6f2b79ae89f59d014cdbfb6a5bf5ded94bf775fa /src/cmd/venti/unittoull.c
parentd338028eeb45434dab651466dcd664091517e087 (diff)
downloadplan9port-adbb83845c5d3cb02343d7613cfb8385aa909909.tar.gz
plan9port-adbb83845c5d3cb02343d7613cfb8385aa909909.zip
remove venti for now
Diffstat (limited to 'src/cmd/venti/unittoull.c')
-rw-r--r--src/cmd/venti/unittoull.c27
1 files changed, 0 insertions, 27 deletions
diff --git a/src/cmd/venti/unittoull.c b/src/cmd/venti/unittoull.c
deleted file mode 100644
index db35aa0f..00000000
--- a/src/cmd/venti/unittoull.c
+++ /dev/null
@@ -1,27 +0,0 @@
-#include "stdinc.h"
-
-#define TWID64 ((u64int)~(u64int)0)
-
-u64int
-unittoull(char *s)
-{
- char *es;
- u64int n;
-
- if(s == nil)
- return TWID64;
- n = strtoul(s, &es, 0);
- if(*es == 'k' || *es == 'K'){
- n *= 1024;
- es++;
- }else if(*es == 'm' || *es == 'M'){
- n *= 1024*1024;
- es++;
- }else if(*es == 'g' || *es == 'G'){
- n *= 1024*1024*1024;
- es++;
- }
- if(*es != '\0')
- return TWID64;
- return n;
-}