aboutsummaryrefslogtreecommitdiff
path: root/fake-lib.c
diff options
context:
space:
mode:
Diffstat (limited to 'fake-lib.c')
-rw-r--r--fake-lib.c12
1 files changed, 0 insertions, 12 deletions
diff --git a/fake-lib.c b/fake-lib.c
index 9862020..36c6198 100644
--- a/fake-lib.c
+++ b/fake-lib.c
@@ -113,15 +113,3 @@ char *dupcat(const char *str, ...)
113 113
114 return out; 114 return out;
115} 115}
116
117unsigned le(const unsigned char *buf, size_t len, size_t off, size_t nbytes)
118{
119 unsigned toret = 0;
120 off += nbytes;
121 while (nbytes-- > 0) {
122 toret <<= 8;
123 if (--off < len)
124 toret |= buf[off];
125 }
126 return toret;
127}