root/doc_inner/gnu_global/S/2828.html

/* [<][>][^][v][top][bottom][index][help] */
<!DOCTYPE html PUBLIC '-//W3C//DTD XHTML 1.0 Transitional//EN' 'http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd'>
<html xmlns='http://www.w3.org/1999/xhtml'>
<head>
<title>src/word.c</title>
<meta name='robots' content='noindex,nofollow' />
<meta name='generator' content='GLOBAL-6.6.5' />
<meta http-equiv='Content-Style-Type' content='text/css' />
<link rel='stylesheet' type='text/css' href='../style.css' />
</head>
<body>
<a id='TOP' name='TOP'></a><h2 class='header'><a href='../mains.html'>root</a>/<a href='../files/2932.html'>src</a>/word.c</h2>
<em class='comment'>/* [&lt;][&gt;]<a href='#L28'>[^]</a><a href='#L137'>[v]</a>[top]<a href='#BOTTOM'>[bottom]</a><a href='../mains.html'>[index]</a><a href='../help.html'>[help]</a> */</em>
<hr />
<h2 class='header'>DEFINITIONS</h2>
This source file includes following definitions.
<ol>
<li><a href='#L28' title='Defined at 28.'>n2word</a></li>
<li><a href='#L47' title='Defined at 47.'>h2word</a></li>
<li><a href='#L77' title='Defined at 77.'>addcerrlist_word</a></li>
<li><a href='#L82' title='Defined at 82.'>nh2word</a></li>
<li><a href='#L102' title='Defined at 102.'>word2n</a></li>
<li><a href='#L120' title='Defined at 120.'>word2bit</a></li>
<li><a href='#L137' title='Defined at 137.'>print_dumpword</a></li>
</ol>
<hr />
<pre>
<a id='L1' name='L1'></a>   1 <em class='sharp'>#include</em> &lt;stdio.h&gt;
<a id='L2' name='L2'></a>   2 <em class='sharp'>#include</em> &lt;string.h&gt;
<a id='L3' name='L3'></a>   3 <em class='sharp'>#include</em> &lt;assert.h&gt;
<a id='L4' name='L4'></a>   4 <em class='sharp'>#include</em> &lt;stdlib.h&gt;
<a id='L5' name='L5'></a>   5 <em class='sharp'>#include</em> &lt;ctype.h&gt;
<a id='L6' name='L6'></a>   6 
<a id='L7' name='L7'></a>   7 <em class='sharp'>#include</em> "<a href='2425.html'>word.h</a>"
<a id='L8' name='L8'></a>   8 <em class='sharp'>#include</em> "<a href='2415.html'>cerr.h</a>"
<a id='L9' name='L9'></a>   9 
<a id='L10' name='L10'></a>  10 <em class='comment'>/**</em>
<a id='L11' name='L11'></a>  11 <em class='comment'> * @brief 10進数値を表す文字列をWORD値に変換する</em>
<a id='L12' name='L12'></a>  12 <em class='comment'> *</em>
<a id='L13' name='L13'></a>  13 <em class='comment'> * @return WORD値</em>
<a id='L14' name='L14'></a>  14 <em class='comment'> *</em>
<a id='L15' name='L15'></a>  15 <em class='comment'> * @param *str 10進数値を表す文字列</em>
<a id='L16' name='L16'></a>  16 <em class='comment'> */</em>
<a id='L17' name='L17'></a>  17 <a href='../S/2425.html#L9' title='Defined at 9 in include/word.h.'>WORD</a> <a href='../S/2828.html#L28' title='Defined at 28 in src/word.c.'>n2word</a>(<strong class='reserved'>const</strong> <strong class='reserved'>char</strong> *<a href='../Y/203.html' title='Multiple used in 103 places.'>str</a>);
<a id='L18' name='L18'></a>  18 
<a id='L19' name='L19'></a>  19 <em class='comment'>/**</em>
<a id='L20' name='L20'></a>  20 <em class='comment'> * @brief 16進数の文字列をWORD値に変換する</em>
<a id='L21' name='L21'></a>  21 <em class='comment'> *</em>
<a id='L22' name='L22'></a>  22 <em class='comment'> * @return WORD値</em>
<a id='L23' name='L23'></a>  23 <em class='comment'> *</em>
<a id='L24' name='L24'></a>  24 <em class='comment'> * @param *str 16進数値を表す文字列</em>
<a id='L25' name='L25'></a>  25 <em class='comment'> */</em>
<a id='L26' name='L26'></a>  26 <a href='../S/2425.html#L9' title='Defined at 9 in include/word.h.'>WORD</a> <a href='../S/2828.html#L47' title='Defined at 47 in src/word.c.'>h2word</a>(<strong class='reserved'>const</strong> <strong class='reserved'>char</strong> *<a href='../Y/203.html' title='Multiple used in 103 places.'>str</a>);
<a id='L27' name='L27'></a>  27 
<a id='L28' name='L28'></a>  28 <a href='../S/2425.html#L9' title='Defined at 9 in include/word.h.'>WORD</a> <a href='../R/189.html' title='Multiple referred from 2 places.'>n2word</a>(<strong class='reserved'>const</strong> <strong class='reserved'>char</strong> *<a href='../Y/203.html' title='Multiple used in 103 places.'>str</a>)
<a id='L29' name='L29'></a>  29 <em class='brace'>{</em>
<a id='L30' name='L30'></a>  30     <a href='../Y/20.html' title='Multiple used in 22 places.'>assert</a>(<a href='../Y/120.html' title='Multiple used in 4 places.'>isdigit</a>(<a href='../Y/203.html' title='Multiple used in 103 places.'>str</a>[0]) || <a href='../Y/203.html' title='Multiple used in 103 places.'>str</a>[0] == '-');
<a id='L31' name='L31'></a>  31 
<a id='L32' name='L32'></a>  32     <strong class='reserved'>char</strong> *<a href='../Y/53.html' title='Multiple used in 6 places.'>check</a> = <a href='../Y/3.html' title='Multiple used in 191 places.'>NULL</a>;
<a id='L33' name='L33'></a>  33     <strong class='reserved'>int</strong> <a href='../Y/152.html' title='Multiple used in 8 places.'>n</a>;
<a id='L34' name='L34'></a>  34     <em class='comment'>/* WORD値に変換 */</em>
<a id='L35' name='L35'></a>  35     <a href='../Y/152.html' title='Multiple used in 8 places.'>n</a> = <a href='../Y/216.html' title='Multiple used in 2 places.'>strtol</a>(<a href='../Y/203.html' title='Multiple used in 103 places.'>str</a>, &amp;<a href='../Y/53.html' title='Multiple used in 6 places.'>check</a>, 10);
<a id='L36' name='L36'></a>  36     <strong class='reserved'>if</strong>(<a href='../Y/53.html' title='Multiple used in 6 places.'>check</a>[0]) <em class='brace'>{</em>
<a id='L37' name='L37'></a>  37         <a href='../S/2845.html#L45' title='Defined at 45 in src/cerr.c.'>setcerr</a>(114, <a href='../Y/203.html' title='Multiple used in 103 places.'>str</a>);    <em class='comment'>/* not integer */</em>
<a id='L38' name='L38'></a>  38         <strong class='reserved'>return</strong> 0x0;
<a id='L39' name='L39'></a>  39     <em class='brace'>}</em>
<a id='L40' name='L40'></a>  40     <em class='comment'>/* nが-32768から32767の範囲にないときは、その下位16ビットを格納 */</em>
<a id='L41' name='L41'></a>  41     <strong class='reserved'>if</strong>(<a href='../Y/152.html' title='Multiple used in 8 places.'>n</a> &lt; -32768 || <a href='../Y/152.html' title='Multiple used in 8 places.'>n</a> &gt; 32767) <em class='brace'>{</em>
<a id='L42' name='L42'></a>  42         <a href='../Y/152.html' title='Multiple used in 8 places.'>n</a> &amp;= 0xFFFF;
<a id='L43' name='L43'></a>  43     <em class='brace'>}</em>
<a id='L44' name='L44'></a>  44     <strong class='reserved'>return</strong> (<a href='../S/2425.html#L9' title='Defined at 9 in include/word.h.'>WORD</a>)<a href='../Y/152.html' title='Multiple used in 8 places.'>n</a>;
<a id='L45' name='L45'></a>  45 <em class='brace'>}</em>
<a id='L46' name='L46'></a>  46 
<a id='L47' name='L47'></a>  47 <a href='../S/2425.html#L9' title='Defined at 9 in include/word.h.'>WORD</a> <a href='../R/160.html' title='Multiple referred from 3 places.'>h2word</a>(<strong class='reserved'>const</strong> <strong class='reserved'>char</strong> *<a href='../Y/203.html' title='Multiple used in 103 places.'>str</a>)
<a id='L48' name='L48'></a>  48 <em class='brace'>{</em>
<a id='L49' name='L49'></a>  49     <a href='../Y/20.html' title='Multiple used in 22 places.'>assert</a>(<a href='../Y/203.html' title='Multiple used in 103 places.'>str</a>[0] == '#');
<a id='L50' name='L50'></a>  50 
<a id='L51' name='L51'></a>  51     <a href='../S/2425.html#L9' title='Defined at 9 in include/word.h.'>WORD</a> <a href='../Y/235.html' title='Multiple used in 107 places.'>w</a> = 0;
<a id='L52' name='L52'></a>  52     <strong class='reserved'>char</strong> *<a href='../Y/53.html' title='Multiple used in 6 places.'>check</a> = <a href='../Y/3.html' title='Multiple used in 191 places.'>NULL</a>;
<a id='L53' name='L53'></a>  53     <a href='../Y/203.html' title='Multiple used in 103 places.'>str</a>++;
<a id='L54' name='L54'></a>  54     <strong class='reserved'>if</strong>(*<a href='../Y/203.html' title='Multiple used in 103 places.'>str</a> == '-' || <a href='../Y/212.html' title='Multiple used in 7 places.'>strlen</a>(<a href='../Y/203.html' title='Multiple used in 103 places.'>str</a>) &gt; 4) <em class='brace'>{</em>
<a id='L55' name='L55'></a>  55         <a href='../S/2845.html#L45' title='Defined at 45 in src/cerr.c.'>setcerr</a>(116, <a href='../Y/203.html' title='Multiple used in 103 places.'>str</a>-1);    <em class='comment'>/* out of hex range */</em>
<a id='L56' name='L56'></a>  56         <strong class='reserved'>return</strong> 0x0;
<a id='L57' name='L57'></a>  57     <em class='brace'>}</em>
<a id='L58' name='L58'></a>  58     <em class='comment'>/* WORD値に変換 */</em>
<a id='L59' name='L59'></a>  59     <a href='../Y/235.html' title='Multiple used in 107 places.'>w</a> = (<a href='../S/2425.html#L9' title='Defined at 9 in include/word.h.'>WORD</a>)<a href='../Y/216.html' title='Multiple used in 2 places.'>strtol</a>(<a href='../Y/203.html' title='Multiple used in 103 places.'>str</a>, &amp;<a href='../Y/53.html' title='Multiple used in 6 places.'>check</a>, 16);
<a id='L60' name='L60'></a>  60     <strong class='reserved'>if</strong>(<a href='../Y/53.html' title='Multiple used in 6 places.'>check</a>[0]) <em class='brace'>{</em>
<a id='L61' name='L61'></a>  61         <a href='../S/2845.html#L45' title='Defined at 45 in src/cerr.c.'>setcerr</a>(115, <a href='../Y/203.html' title='Multiple used in 103 places.'>str</a>-1);    <em class='comment'>/* not hex */</em>
<a id='L62' name='L62'></a>  62         <strong class='reserved'>return</strong> 0x0;
<a id='L63' name='L63'></a>  63     <em class='brace'>}</em>
<a id='L64' name='L64'></a>  64     <strong class='reserved'>return</strong> <a href='../Y/235.html' title='Multiple used in 107 places.'>w</a>;
<a id='L65' name='L65'></a>  65 <em class='brace'>}</em>
<a id='L66' name='L66'></a>  66 
<a id='L67' name='L67'></a>  67 <em class='comment'>/**</em>
<a id='L68' name='L68'></a>  68 <em class='comment'> * @brief wordのエラー定義</em>
<a id='L69' name='L69'></a>  69 <em class='comment'> */</em>
<a id='L70' name='L70'></a>  70 <strong class='reserved'>static</strong> <a href='../S/2415.html#L18' title='Defined at 18 in include/cerr.h.'>CERR</a> <a href='../Y/49.html' title='Multiple used in 2 places.'>cerr_word</a>[] = <em class='brace'>{</em>
<a id='L71' name='L71'></a>  71     <em class='brace'>{</em> 114, "not integer" <em class='brace'>}</em>,
<a id='L72' name='L72'></a>  72     <em class='brace'>{</em> 115, "not hex" <em class='brace'>}</em>,
<a id='L73' name='L73'></a>  73     <em class='brace'>{</em> 116, "out of hex range" <em class='brace'>}</em>,
<a id='L74' name='L74'></a>  74 <em class='brace'>}</em>;
<a id='L75' name='L75'></a>  75 
<a id='L76' name='L76'></a>  76 <em class='comment'>/* word.hで定義された関数群 */</em>
<a id='L77' name='L77'></a>  77 <strong class='reserved'>void</strong> <a href='../R/93.html' title='Multiple referred from 4 places.'>addcerrlist_word</a>()
<a id='L78' name='L78'></a>  78 <em class='brace'>{</em>
<a id='L79' name='L79'></a>  79     <a href='../S/2845.html#L13' title='Defined at 13 in src/cerr.c.'>addcerrlist</a>(<a href='../S/2424.html#L14' title='Defined at 14 in include/cmem.h.'>ARRAYSIZE</a>(<a href='../Y/49.html' title='Multiple used in 2 places.'>cerr_word</a>), <a href='../Y/49.html' title='Multiple used in 2 places.'>cerr_word</a>);
<a id='L80' name='L80'></a>  80 <em class='brace'>}</em>
<a id='L81' name='L81'></a>  81 
<a id='L82' name='L82'></a>  82 <a href='../S/2425.html#L9' title='Defined at 9 in include/word.h.'>WORD</a> <a href='../R/190.html' title='Multiple referred from 13 places.'>nh2word</a>(<strong class='reserved'>const</strong> <strong class='reserved'>char</strong> *<a href='../Y/203.html' title='Multiple used in 103 places.'>str</a>)
<a id='L83' name='L83'></a>  83 <em class='brace'>{</em>
<a id='L84' name='L84'></a>  84     <a href='../S/2425.html#L9' title='Defined at 9 in include/word.h.'>WORD</a> <a href='../Y/235.html' title='Multiple used in 107 places.'>w</a>;
<a id='L85' name='L85'></a>  85 
<a id='L86' name='L86'></a>  86     <a href='../Y/20.html' title='Multiple used in 22 places.'>assert</a>(<strong class='reserved'>sizeof</strong>(<a href='../S/2425.html#L9' title='Defined at 9 in include/word.h.'>WORD</a>) * 8 == 16); <em class='comment'>/* WORD型のサイズが16ビットであることを確認 */</em>
<a id='L87' name='L87'></a>  87     <strong class='reserved'>if</strong>(<a href='../Y/203.html' title='Multiple used in 103 places.'>str</a> == <a href='../Y/3.html' title='Multiple used in 191 places.'>NULL</a>) <em class='brace'>{</em>
<a id='L88' name='L88'></a>  88         <strong class='reserved'>return</strong> 0x0;
<a id='L89' name='L89'></a>  89     <em class='brace'>}</em>
<a id='L90' name='L90'></a>  90     <strong class='reserved'>if</strong>(!<a href='../Y/120.html' title='Multiple used in 4 places.'>isdigit</a>(*<a href='../Y/203.html' title='Multiple used in 103 places.'>str</a>) &amp;&amp; *<a href='../Y/203.html' title='Multiple used in 103 places.'>str</a> != '-' &amp;&amp; *<a href='../Y/203.html' title='Multiple used in 103 places.'>str</a> != '#') <em class='brace'>{</em>
<a id='L91' name='L91'></a>  91         <a href='../S/2845.html#L45' title='Defined at 45 in src/cerr.c.'>setcerr</a>(114, <a href='../Y/203.html' title='Multiple used in 103 places.'>str</a>);    <em class='comment'>/* not integer */</em>
<a id='L92' name='L92'></a>  92         <strong class='reserved'>return</strong> 0x0;
<a id='L93' name='L93'></a>  93     <em class='brace'>}</em>
<a id='L94' name='L94'></a>  94     <strong class='reserved'>if</strong>(*<a href='../Y/203.html' title='Multiple used in 103 places.'>str</a> == '#') <em class='brace'>{</em>
<a id='L95' name='L95'></a>  95         <a href='../Y/235.html' title='Multiple used in 107 places.'>w</a> = <a href='../S/2828.html#L47' title='Defined at 47 in src/word.c.'>h2word</a>(<a href='../Y/203.html' title='Multiple used in 103 places.'>str</a>);
<a id='L96' name='L96'></a>  96     <em class='brace'>}</em> <strong class='reserved'>else</strong> <em class='brace'>{</em>
<a id='L97' name='L97'></a>  97         <a href='../Y/235.html' title='Multiple used in 107 places.'>w</a> = <a href='../S/2828.html#L28' title='Defined at 28 in src/word.c.'>n2word</a>(<a href='../Y/203.html' title='Multiple used in 103 places.'>str</a>);
<a id='L98' name='L98'></a>  98     <em class='brace'>}</em>
<a id='L99' name='L99'></a>  99     <strong class='reserved'>return</strong> <a href='../Y/235.html' title='Multiple used in 107 places.'>w</a>;
<a id='L100' name='L100'></a> 100 <em class='brace'>}</em>
<a id='L101' name='L101'></a> 101 
<a id='L102' name='L102'></a> 102 <strong class='reserved'>char</strong> *<a href='../R/229.html' title='Multiple referred from 2 places.'>word2n</a>(<a href='../S/2425.html#L9' title='Defined at 9 in include/word.h.'>WORD</a> <a href='../Y/237.html' title='Multiple used in 54 places.'>word</a>)
<a id='L103' name='L103'></a> 103 <em class='brace'>{</em>
<a id='L104' name='L104'></a> 104     <strong class='reserved'>enum</strong> <em class='brace'>{</em>
<a id='L105' name='L105'></a> 105         <a href='../R/40.html' title='Multiple referred from 2 places.'>MAXLEN</a> = 5,        <em class='comment'>/* WORD値を10進数で表したときの最大けた数 */</em>
<a id='L106' name='L106'></a> 106     <em class='brace'>}</em>;
<a id='L107' name='L107'></a> 107     <strong class='reserved'>char</strong> *<a href='../Y/188.html' title='Multiple used in 74 places.'>s</a> = <a href='../S/2831.html#L3' title='Defined at 3 in src/cmem.c.'>malloc_chk</a>(<a href='../D/42.html' title='Multiple defined in 2 places.'>MAXLEN</a> + 1, "word2n.n");
<a id='L108' name='L108'></a> 108     <strong class='reserved'>char</strong> *<a href='../Y/218.html' title='Multiple used in 30 places.'>t</a> = <a href='../Y/3.html' title='Multiple used in 191 places.'>NULL</a>;
<a id='L109' name='L109'></a> 109     <strong class='reserved'>int</strong> <a href='../Y/78.html' title='Multiple used in 3 places.'>d</a> = 0;                  <em class='comment'>/* けた数 */</em>
<a id='L110' name='L110'></a> 110 
<a id='L111' name='L111'></a> 111     <strong class='reserved'>do</strong><em class='brace'>{</em>
<a id='L112' name='L112'></a> 112         <a href='../Y/188.html' title='Multiple used in 74 places.'>s</a>[<a href='../Y/78.html' title='Multiple used in 3 places.'>d</a>++] = <a href='../Y/237.html' title='Multiple used in 54 places.'>word</a> % 10 + '0';
<a id='L113' name='L113'></a> 113     <em class='brace'>}</em> <strong class='reserved'>while</strong>((<a href='../Y/237.html' title='Multiple used in 54 places.'>word</a> /= 10) &gt; 0);
<a id='L114' name='L114'></a> 114     <a href='../Y/188.html' title='Multiple used in 74 places.'>s</a>[<a href='../Y/78.html' title='Multiple used in 3 places.'>d</a>] = '\0';
<a id='L115' name='L115'></a> 115     <a href='../Y/218.html' title='Multiple used in 30 places.'>t</a> = <a href='../S/2831.html#L71' title='Defined at 71 in src/cmem.c.'>strrev</a>(<a href='../Y/188.html' title='Multiple used in 74 places.'>s</a>);
<a id='L116' name='L116'></a> 116     <a href='../S/2424.html#L21' title='Defined at 21 in include/cmem.h.'>FREE</a>(<a href='../Y/188.html' title='Multiple used in 74 places.'>s</a>);
<a id='L117' name='L117'></a> 117     <strong class='reserved'>return</strong> <a href='../Y/218.html' title='Multiple used in 30 places.'>t</a>;
<a id='L118' name='L118'></a> 118 <em class='brace'>}</em>
<a id='L119' name='L119'></a> 119 
<a id='L120' name='L120'></a> 120 <strong class='reserved'>char</strong> *<a href='../R/228.html' title='Multiple referred from 5 places.'>word2bit</a>(<strong class='reserved'>const</strong> <a href='../S/2425.html#L9' title='Defined at 9 in include/word.h.'>WORD</a> <a href='../Y/237.html' title='Multiple used in 54 places.'>word</a>)
<a id='L121' name='L121'></a> 121 <em class='brace'>{</em>
<a id='L122' name='L122'></a> 122     <strong class='reserved'>enum</strong> <em class='brace'>{</em>
<a id='L123' name='L123'></a> 123         <a href='../R/40.html' title='Multiple referred from 2 places.'>MAXLEN</a> = 16,        <em class='comment'>/* WORD値を2進数で表したときの最大桁数 */</em>
<a id='L124' name='L124'></a> 124     <em class='brace'>}</em>;
<a id='L125' name='L125'></a> 125     <a href='../S/2425.html#L9' title='Defined at 9 in include/word.h.'>WORD</a> <a href='../Y/143.html' title='Multiple used in 3 places.'>mask</a> = 0x8000;
<a id='L126' name='L126'></a> 126     <strong class='reserved'>char</strong> *<a href='../Y/24.html' title='Multiple used in 8 places.'>bit</a> = <a href='../Y/3.html' title='Multiple used in 191 places.'>NULL</a>;
<a id='L127' name='L127'></a> 127     <strong class='reserved'>int</strong> <a href='../Y/117.html' title='Multiple used in 233 places.'>i</a> = 0;
<a id='L128' name='L128'></a> 128 
<a id='L129' name='L129'></a> 129     <a href='../Y/24.html' title='Multiple used in 8 places.'>bit</a> = <a href='../S/2831.html#L3' title='Defined at 3 in src/cmem.c.'>malloc_chk</a>(<a href='../D/42.html' title='Multiple defined in 2 places.'>MAXLEN</a> + 1, "word2bit.bit");
<a id='L130' name='L130'></a> 130     <strong class='reserved'>do</strong> <em class='brace'>{</em>
<a id='L131' name='L131'></a> 131         <a href='../Y/24.html' title='Multiple used in 8 places.'>bit</a>[<a href='../Y/117.html' title='Multiple used in 233 places.'>i</a>++] = (<a href='../Y/237.html' title='Multiple used in 54 places.'>word</a> &amp; <a href='../Y/143.html' title='Multiple used in 3 places.'>mask</a>) ? '1' : '0';
<a id='L132' name='L132'></a> 132     <em class='brace'>}</em> <strong class='reserved'>while</strong>((<a href='../Y/143.html' title='Multiple used in 3 places.'>mask</a> &gt;&gt;= 1) &gt; 0);
<a id='L133' name='L133'></a> 133     <a href='../Y/24.html' title='Multiple used in 8 places.'>bit</a>[<a href='../Y/117.html' title='Multiple used in 233 places.'>i</a>] = '\0';
<a id='L134' name='L134'></a> 134     <strong class='reserved'>return</strong> <a href='../Y/24.html' title='Multiple used in 8 places.'>bit</a>;
<a id='L135' name='L135'></a> 135 <em class='brace'>}</em>
<a id='L136' name='L136'></a> 136 
<a id='L137' name='L137'></a> 137 <strong class='reserved'>void</strong> <a href='../R/199.html' title='Multiple referred from 4 places.'>print_dumpword</a>(<a href='../S/2425.html#L9' title='Defined at 9 in include/word.h.'>WORD</a> <a href='../Y/237.html' title='Multiple used in 54 places.'>word</a>, <a href='../Y/25.html' title='Multiple used in 55 places.'>bool</a> <a href='../Y/137.html' title='Multiple used in 6 places.'>logicalmode</a>)
<a id='L138' name='L138'></a> 138 <em class='brace'>{</em>
<a id='L139' name='L139'></a> 139     <strong class='reserved'>char</strong> *<a href='../Y/24.html' title='Multiple used in 8 places.'>bit</a> = <a href='../S/2828.html#L120' title='Defined at 120 in src/word.c.'>word2bit</a>(<a href='../Y/237.html' title='Multiple used in 54 places.'>word</a>);
<a id='L140' name='L140'></a> 140 
<a id='L141' name='L141'></a> 141     <strong class='reserved'>if</strong>(<a href='../Y/137.html' title='Multiple used in 6 places.'>logicalmode</a> == <a href='../Y/228.html' title='Multiple used in 79 places.'>true</a>) <em class='brace'>{</em>
<a id='L142' name='L142'></a> 142         <a href='../Y/102.html' title='Multiple used in 115 places.'>fprintf</a>(<a href='../Y/200.html' title='Multiple used in 93 places.'>stdout</a>, "%6u", <a href='../Y/237.html' title='Multiple used in 54 places.'>word</a>);
<a id='L143' name='L143'></a> 143     <em class='brace'>}</em> <strong class='reserved'>else</strong> <em class='brace'>{</em>
<a id='L144' name='L144'></a> 144         <a href='../Y/102.html' title='Multiple used in 115 places.'>fprintf</a>(<a href='../Y/200.html' title='Multiple used in 93 places.'>stdout</a>, "%6d", (<strong class='reserved'>signed</strong> <strong class='reserved'>short</strong>)<a href='../Y/237.html' title='Multiple used in 54 places.'>word</a>);
<a id='L145' name='L145'></a> 145     <em class='brace'>}</em>
<a id='L146' name='L146'></a> 146     <a href='../Y/102.html' title='Multiple used in 115 places.'>fprintf</a>(<a href='../Y/200.html' title='Multiple used in 93 places.'>stdout</a>, " = #%04X = %s", <a href='../Y/237.html' title='Multiple used in 54 places.'>word</a>, <a href='../Y/24.html' title='Multiple used in 8 places.'>bit</a>);
<a id='L147' name='L147'></a> 147     <em class='comment'>/* 「文字の組」の符号表に記載された文字と、改行(CR)/タブを表示 */</em>
<a id='L148' name='L148'></a> 148     <strong class='reserved'>if</strong>(<a href='../Y/237.html' title='Multiple used in 54 places.'>word</a> &gt;= 0x20 &amp;&amp; <a href='../Y/237.html' title='Multiple used in 54 places.'>word</a> &lt;= 0x7E) <em class='brace'>{</em>
<a id='L149' name='L149'></a> 149         <a href='../Y/102.html' title='Multiple used in 115 places.'>fprintf</a>(<a href='../Y/200.html' title='Multiple used in 93 places.'>stdout</a>, " = \'%c\'", <a href='../Y/237.html' title='Multiple used in 54 places.'>word</a>);
<a id='L150' name='L150'></a> 150     <em class='brace'>}</em> <strong class='reserved'>else</strong> <strong class='reserved'>if</strong>(<a href='../Y/237.html' title='Multiple used in 54 places.'>word</a> == 0xA) <em class='brace'>{</em>
<a id='L151' name='L151'></a> 151         <a href='../Y/102.html' title='Multiple used in 115 places.'>fprintf</a>(<a href='../Y/200.html' title='Multiple used in 93 places.'>stdout</a>, " = \'\\n\'");
<a id='L152' name='L152'></a> 152     <em class='brace'>}</em> <strong class='reserved'>else</strong> <strong class='reserved'>if</strong>(<a href='../Y/237.html' title='Multiple used in 54 places.'>word</a> == '\t') <em class='brace'>{</em>
<a id='L153' name='L153'></a> 153         <a href='../Y/102.html' title='Multiple used in 115 places.'>fprintf</a>(<a href='../Y/200.html' title='Multiple used in 93 places.'>stdout</a>, " = \'\\t\'");
<a id='L154' name='L154'></a> 154     <em class='brace'>}</em>
<a id='L155' name='L155'></a> 155     <a href='../S/2424.html#L21' title='Defined at 21 in include/cmem.h.'>FREE</a>(<a href='../Y/24.html' title='Multiple used in 8 places.'>bit</a>);
<a id='L156' name='L156'></a> 156 <em class='brace'>}</em>
</pre>
<hr />
<a id='BOTTOM' name='BOTTOM'></a>
<em class='comment'>/* [&lt;][&gt;]<a href='#L28'>[^]</a><a href='#L137'>[v]</a><a href='#TOP'>[top]</a>[bottom]<a href='../mains.html'>[index]</a><a href='../help.html'>[help]</a> */</em>
</body>
</html>

/* [<][>][^][v][top][bottom][index][help] */