関数a2wordの名前をnh2wordに変更
[YACASL2.git] / include / word.h
1 #ifndef YACASL2_WORD_H_INCLUDED
2 #define YACASL2_WORD_H_INCLUDED
3
4 #include <string.h>
5 #include <assert.h>
6 #include <stdlib.h>
7 #include <ctype.h>
8 #include "cerr.h"
9
10 /* WORD - 16ビットデータ型 */
11 typedef unsigned short WORD;
12
13 /* 10進数の文字列をWORD値に変換 */
14 WORD n2word(const char *str);
15
16 /* 16進数の文字列をWORD値に変換 */
17 WORD h2word(const char *str);
18
19 /* 10進数または16進数の文字列をWORD値に変換 */
20 WORD nh2word(const char *str);
21
22 /* WORD値を10進数の文字列に変換 */
23 char *word2n(WORD word);
24
25 /* WORD値を2進数の文字列に変換 */
26 char *word2bit(const WORD word);
27
28 #endif