summaryrefslogtreecommitdiff
path: root/binary.c
diff options
context:
space:
mode:
Diffstat (limited to 'binary.c')
-rw-r--r--binary.c8
1 files changed, 0 insertions, 8 deletions
diff --git a/binary.c b/binary.c
index e4188b6..bb2eb9d 100644
--- a/binary.c
+++ b/binary.c
@@ -27,14 +27,6 @@
#include "binary.h"
-uintmax_t binary(const char *s)
-{
- char array[BINSTRLEN];
- memset(array, '0', sizeof(array));
- strcpy(array + (sizeof(array) - strlen(s)) - 1, s);
- return BIN_FROM_ARRAY(array);
-}
-
char *binstr(size_t n, char s[n], uintmax_t b)
{
memset(s, '0', n);