X-Git-Url: http://j8takagi.net/cgi-bin/gitweb.cgi?p=YACASL2.git;a=blobdiff_plain;f=src%2Fdump.c;fp=src%2Fdump.c;h=09fe4ddff4724230ef1a650d7776ea2eac94017e;hp=5362de4b6104e336e8ff5467cb940290e908a8f2;hb=e07b6371cc8a59c6793a895e968ff2c6cf28181b;hpb=cc884e475afe3f48804b35336e68bce4088be61a diff --git a/src/dump.c b/src/dump.c index 5362de4..09fe4dd 100644 --- a/src/dump.c +++ b/src/dump.c @@ -1,19 +1,5 @@ #include "casl2.h" -/* WORD値を2進数表記に変換 */ -char *word2bit(const WORD word) -{ - WORD mask = 0x8000; - char *bit, *p; - bit = malloc(16 + 1); - p = bit; - do { - *p++ = (word & mask) ? '1' : '0'; - } while((mask >>= 1) > 0); - *p = '\0'; - return bit; -} - /* COMET IIのメモリを表示 */ void dumpmemory() {