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