~jkaivo/binary

eb97a1d468e210a1e7170f5cb388333094c7dbbd — Jakob Kaivo 3 years ago b24164d
remove redundant function binary()
2 files changed, 0 insertions(+), 9 deletions(-)

M binary.c
M binary.h
M binary.c => binary.c +0 -8
@@ 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);

M binary.h => binary.h +0 -1
@@ 57,5 57,4 @@
#define BINSTRLEN	(BIN_UINTMAXBITS + 1)
#define BIN(_n)		(BIN_FROM_ARRAY(#_n))

uintmax_t binary(const char *s);
char *binstr(size_t n, char s[n], uintmax_t b);