<?xml version="1.0"?>
<?xml-stylesheet type="text/css" href="http://www.yasunaga-lab.bio.kyutech.ac.jp/Eos/skins/common/feed.css?303"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>http://www.yasunaga-lab.bio.kyutech.ac.jp/Eos/index.php?action=history&amp;feed=atom&amp;title=genUtil%28API%29</id>
		<title>genUtil(API) - Revision history</title>
		<link rel="self" type="application/atom+xml" href="http://www.yasunaga-lab.bio.kyutech.ac.jp/Eos/index.php?action=history&amp;feed=atom&amp;title=genUtil%28API%29"/>
		<link rel="alternate" type="text/html" href="http://www.yasunaga-lab.bio.kyutech.ac.jp/Eos/index.php?title=genUtil(API)&amp;action=history"/>
		<updated>2026-05-04T17:10:50Z</updated>
		<subtitle>Revision history for this page on the wiki</subtitle>
		<generator>MediaWiki 1.23.6</generator>

	<entry>
		<id>http://www.yasunaga-lab.bio.kyutech.ac.jp/Eos/index.php?title=genUtil(API)&amp;diff=4338&amp;oldid=prev</id>
		<title>Kinoshita at 05:46, 30 September 2014</title>
		<link rel="alternate" type="text/html" href="http://www.yasunaga-lab.bio.kyutech.ac.jp/Eos/index.php?title=genUtil(API)&amp;diff=4338&amp;oldid=prev"/>
				<updated>2014-09-30T05:46:28Z</updated>
		
		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table class='diff diff-contentalign-left'&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
				&lt;tr style='vertical-align: top;'&gt;
				&lt;td colspan='2' style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan='2' style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;Revision as of 05:46, 30 September 2014&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 20:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 20:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#160; #define GEN_UTIL_MAX_STRING_LENGTH&amp;#160; (1024)&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#160; #define GEN_UTIL_MAX_STRING_LENGTH&amp;#160; (1024)&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;===Ratio===&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;Pi&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt; #define PI M_PI&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;(degree)/(radian)&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt; #define DEGREE&amp;#160; (180.0/PI)&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;(radian)/(degree)&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt; #define RADIAN&amp;#160; (PI/180.0)&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;(percentage)/(fraction)&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt; #define PERCENT (100.0)&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;== struct ==&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;== API ==&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;===Calculation of value===&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;===Calculation of value===&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Square&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Square&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 37:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 50:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#160; #endif&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#160; #endif&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;===Ratio===&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;Pi&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt; #define PI M_PI&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;(degree)/(radian)&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt; #define DEGREE&amp;#160; (180.0/PI)&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;(radian)/(degree)&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt; #define RADIAN&amp;#160; (PI/180.0)&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;(percentage)/(fraction)&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt; #define PERCENT (100.0)&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;== struct ==&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;== API ==&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;===Correction of value===&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;===Correction of value===&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Correction of radian as angle between 0 and 2π.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Correction of radian as angle between 0 and 2π.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Kinoshita</name></author>	</entry>

	<entry>
		<id>http://www.yasunaga-lab.bio.kyutech.ac.jp/Eos/index.php?title=genUtil(API)&amp;diff=3873&amp;oldid=prev</id>
		<title>Kinoshita: /* エラーメッセージOutput */</title>
		<link rel="alternate" type="text/html" href="http://www.yasunaga-lab.bio.kyutech.ac.jp/Eos/index.php?title=genUtil(API)&amp;diff=3873&amp;oldid=prev"/>
				<updated>2014-09-08T01:11:05Z</updated>
		
		<summary type="html">&lt;p&gt;‎&lt;span dir=&quot;auto&quot;&gt;&lt;span class=&quot;autocomment&quot;&gt;エラーメッセージOutput&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;table class='diff diff-contentalign-left'&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
				&lt;tr style='vertical-align: top;'&gt;
				&lt;td colspan='2' style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan='2' style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;Revision as of 01:11, 8 September 2014&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 237:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 237:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#160; #endif&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#160; #endif&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;===&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;エラーメッセージOutput&lt;/del&gt;===&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;===&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;Output error message&lt;/ins&gt;===&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;You can use up to 7 arguments as option.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;You can use up to 7 arguments as option.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#160; #define ERRORPRINT(x) fprintf(stderr,x);&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#160; #define ERRORPRINT(x) fprintf(stderr,x);&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Kinoshita</name></author>	</entry>

	<entry>
		<id>http://www.yasunaga-lab.bio.kyutech.ac.jp/Eos/index.php?title=genUtil(API)&amp;diff=3872&amp;oldid=prev</id>
		<title>Kinoshita: Created page with &quot;General/'''genUtil''' is API that define general value, calculation, and process for Eos.  == constant == Maximum value of float  #ifndef I386MAC  #ifndef X86MAC64  #ifnde...&quot;</title>
		<link rel="alternate" type="text/html" href="http://www.yasunaga-lab.bio.kyutech.ac.jp/Eos/index.php?title=genUtil(API)&amp;diff=3872&amp;oldid=prev"/>
				<updated>2014-09-08T01:10:38Z</updated>
		
		<summary type="html">&lt;p&gt;Created page with &amp;quot;General/&amp;#039;&amp;#039;&amp;#039;genUtil&amp;#039;&amp;#039;&amp;#039; is API that define general value, calculation, and process for &lt;a href=&quot;/Eos/index.php/Eos&quot; title=&quot;Eos&quot;&gt;Eos&lt;/a&gt;.  == constant == Maximum value of float  #ifndef I386MAC  #ifndef X86MAC64  #ifnde...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;General/'''genUtil''' is API that define general value, calculation, and process for [[Eos]].&lt;br /&gt;
&lt;br /&gt;
== constant ==&lt;br /&gt;
Maximum value of float&lt;br /&gt;
 #ifndef I386MAC&lt;br /&gt;
 #ifndef X86MAC64&lt;br /&gt;
 #ifndef I386CYGWIN &lt;br /&gt;
 #include &amp;lt;values.h&amp;gt;&lt;br /&gt;
 #else&lt;br /&gt;
 #define MAXFLOAT 1e30&lt;br /&gt;
 #endif&lt;br /&gt;
 #else&lt;br /&gt;
 #include &amp;lt;math.h&amp;gt;&lt;br /&gt;
 #endif&lt;br /&gt;
 #else&lt;br /&gt;
 #define MAXFLOAT 1e30&lt;br /&gt;
 #endif &lt;br /&gt;
&lt;br /&gt;
Maximum value of string&lt;br /&gt;
 #define GEN_UTIL_MAX_STRING_LENGTH  (1024)&lt;br /&gt;
&lt;br /&gt;
===Calculation of value===&lt;br /&gt;
Square&lt;br /&gt;
 #define SQR(x)    ((x)*(x))&lt;br /&gt;
Positive square root&lt;br /&gt;
 #define SQRT(x)   ((x)&amp;gt;0?sqrt(x):0)&lt;br /&gt;
Cube&lt;br /&gt;
 #define CUBIC(x)  ((x)*(x)*(x))&lt;br /&gt;
Maximum value(Among 2 value)&lt;br /&gt;
 #ifndef MAX&lt;br /&gt;
 #define MAX(x,y) ((x)&amp;gt;(y)?(x):(y))&lt;br /&gt;
 #endif&lt;br /&gt;
Minimum value(Among 2 or 3 value)&lt;br /&gt;
 #ifndef MIN&lt;br /&gt;
 #define MIN(x,y) ((x)&amp;lt;(y)?(x):(y))&lt;br /&gt;
 #define MIN3(x,y,z) MIN( MIN(x,y), z)&lt;br /&gt;
 #endif&lt;br /&gt;
&lt;br /&gt;
===Ratio===&lt;br /&gt;
Pi&lt;br /&gt;
 #define PI M_PI&lt;br /&gt;
(degree)/(radian)&lt;br /&gt;
 #define DEGREE  (180.0/PI)&lt;br /&gt;
(radian)/(degree)&lt;br /&gt;
 #define RADIAN  (PI/180.0)&lt;br /&gt;
(percentage)/(fraction)&lt;br /&gt;
 #define PERCENT (100.0)&lt;br /&gt;
&lt;br /&gt;
== struct ==&lt;br /&gt;
&lt;br /&gt;
== API ==&lt;br /&gt;
===Correction of value===&lt;br /&gt;
Correction of radian as angle between 0 and 2π.&lt;br /&gt;
 #define NORMAL_PHASE(x)     ((x)&amp;gt;=(0)?(fmod((x),2*M_PI)):(fmod((x),2*M_PI)+2*M_PI))   /* 0 ~ 2M_PI */&lt;br /&gt;
Correction of radian as angle between 0 and π.&lt;br /&gt;
 #define MIN_NORMAL_PHASE(x)  MIN(NORMAL_PHASE(x), 2*M_PI-NORMAL_PHASE(x))             /* 0 ~ M_PI */&lt;br /&gt;
&lt;br /&gt;
Correction of integer x as integer between 0 and y.&lt;br /&gt;
 #define POSITIVE_MODE(x,y)  ((x)&amp;gt;=(0)?(     (x)%(y)    ):((y)==1?0:     (x)%(y)  +(y)))&lt;br /&gt;
Correction of real number x as real number between 0 and y.&lt;br /&gt;
 #define POSITIVE_FMODE(x,y) ((x)&amp;gt;=(0)?(fmod((x),(y))   ):((y)==1?0:fmod((x),(y)) +(y)))&lt;br /&gt;
&lt;br /&gt;
===Compare strings===&lt;br /&gt;
It can work as switch expression by combining the following syntax.&lt;br /&gt;
 #define SSWITCH(x)  { char* __sswitch_tmp_=x; \&lt;br /&gt;
 					if(0==strcmp(__sswitch_tmp_, &amp;quot;&amp;quot;)) { \&lt;br /&gt;
 						fprintf(stderr, &amp;quot;SSWITCH Error\n&amp;quot;); \&lt;br /&gt;
 						exit(EXIT_FAILURE); \&lt;br /&gt;
 					}&lt;br /&gt;
 #define SCASE(x)    else if(0==strcmp(x,__sswitch_tmp_))&lt;br /&gt;
 #define SDEFAULT    else&lt;br /&gt;
 #define SBREAK      ;&lt;br /&gt;
 #define SSWITCHEND  }&lt;br /&gt;
&lt;br /&gt;
===Determination of odd or even===&lt;br /&gt;
 #define IsOdd(x)    ((x)%2==1?1:0)&lt;br /&gt;
 #define IsEven(x)    ((x)%2==0?1:0)&lt;br /&gt;
&lt;br /&gt;
===Byte process===&lt;br /&gt;
 #ifdef M68&lt;br /&gt;
 #define BYTE4SET(x3,x2,x1,x0) ((((x0)&amp;lt;&amp;lt; 0)&amp;amp;0x000f) \&lt;br /&gt;
 							  |(((x1)&amp;lt;&amp;lt; 8)&amp;amp;0x00f0) \&lt;br /&gt;
 							  |(((x2)&amp;lt;&amp;lt;16)&amp;amp;0x0f00) \&lt;br /&gt;
 							  |(((x3)&amp;lt;&amp;lt;24)&amp;amp;0xf000))&lt;br /&gt;
 #define BYTE4GETBYTE(x,byte)  (((x)&amp;gt;&amp;gt;(byte*8))&amp;amp;0x000f) &lt;br /&gt;
 #else&lt;br /&gt;
 #define BYTE4SET(x3,x2,x1,x0) ((((x3)&amp;lt;&amp;lt; 0)&amp;amp;0x000f) \&lt;br /&gt;
 							  |(((x2)&amp;lt;&amp;lt; 8)&amp;amp;0x00f0) \&lt;br /&gt;
 							  |(((x1)&amp;lt;&amp;lt;16)&amp;amp;0x0f00) \&lt;br /&gt;
 							  |(((x0)&amp;lt;&amp;lt;24)&amp;amp;0xf000))&lt;br /&gt;
 #define BYTE4GETBYTE(x,byte)  (((x)&amp;gt;&amp;gt;((3-byte)*8))&amp;amp;0x000f) &lt;br /&gt;
 #endif&lt;br /&gt;
&lt;br /&gt;
===usageCreate===&lt;br /&gt;
You can use up to 2 arguments as option.&lt;br /&gt;
 #define USAGEPRINT(x) fprintf(stderr,x);&lt;br /&gt;
 #define USAGEPRINT1(x,x1) fprintf(stderr,x,x1);&lt;br /&gt;
 #define USAGEPRINT2(x,x1,x2) fprintf(stderr,x,x1,x2);&lt;br /&gt;
&lt;br /&gt;
===Output log message===&lt;br /&gt;
You can use up to 12 arguments.&lt;br /&gt;
 #define LOGPRINT(fpt,ID,ID2,x) \&lt;br /&gt;
 					fprintf(fpt, &amp;quot;%-6s %-15s&amp;quot;,ID,ID2); \&lt;br /&gt;
 					fprintf(fpt, x); \&lt;br /&gt;
 					fprintf(fpt, &amp;quot;\n&amp;quot;); fflush(fpt); \&lt;br /&gt;
 					fprintf(stdout, &amp;quot;%-6s %-15s&amp;quot;,ID,ID2); \&lt;br /&gt;
 					fprintf(stdout, x); \&lt;br /&gt;
 					fprintf(stdout, &amp;quot;\n&amp;quot;); fflush(stdout); &lt;br /&gt;
 #define LOGPRINT1(fpt,ID,ID2,x,d1) 	\&lt;br /&gt;
 					fprintf(fpt, &amp;quot;%-6s %-15s &amp;quot;,ID,ID2); \&lt;br /&gt;
 					fprintf(fpt, x, d1); \&lt;br /&gt;
 					fprintf(fpt, &amp;quot;\n&amp;quot;); fflush(fpt); \&lt;br /&gt;
 					fprintf(stdout, &amp;quot;%-6s %-15s &amp;quot;,ID,ID2); \&lt;br /&gt;
 					fprintf(stdout, x, d1); \&lt;br /&gt;
 					fprintf(stdout, &amp;quot;\n&amp;quot;); fflush(stdout); &lt;br /&gt;
 #define LOGPRINT2(fpt,ID,ID2,x,d1,d2) \&lt;br /&gt;
 					fprintf(fpt, &amp;quot;%-6s %-15s &amp;quot;,ID,ID2); \&lt;br /&gt;
 					fprintf(fpt, x, d1,d2);	\&lt;br /&gt;
 					fprintf(fpt, &amp;quot;\n&amp;quot;); fflush(fpt); \&lt;br /&gt;
 					fprintf(stdout, &amp;quot;%-6s %-15s &amp;quot;,ID,ID2); \&lt;br /&gt;
 					fprintf(stdout, x, d1,d2);	\&lt;br /&gt;
 					fprintf(stdout, &amp;quot;\n&amp;quot;); fflush(stdout); &lt;br /&gt;
 #define LOGPRINT3(fpt,ID,ID2,x,d1,d2,d3) 	\&lt;br /&gt;
 					fprintf(fpt, &amp;quot;%-6s %-15s &amp;quot;,ID,ID2); \&lt;br /&gt;
 					fprintf(fpt, x, d1,d2,d3); \&lt;br /&gt;
 					fprintf(fpt, &amp;quot;\n&amp;quot;); fflush(fpt); \&lt;br /&gt;
 					fprintf(stdout, &amp;quot;%-6s %-15s &amp;quot;,ID,ID2); \&lt;br /&gt;
 					fprintf(stdout, x, d1,d2,d3); \&lt;br /&gt;
 					fprintf(stdout, &amp;quot;\n&amp;quot;); fflush(stdout); &lt;br /&gt;
 #define LOGPRINT4(fpt,ID,ID2,x,d1,d2,d3,d4) \&lt;br /&gt;
 					fprintf(fpt, &amp;quot;%-6s %-15s &amp;quot;,ID,ID2); \&lt;br /&gt;
 					fprintf(fpt, x, d1,d2,d3,d4); \&lt;br /&gt;
 					fprintf(fpt, &amp;quot;\n&amp;quot;); fflush(fpt); \&lt;br /&gt;
 					fprintf(stdout, &amp;quot;%-6s %-15s &amp;quot;,ID,ID2); \&lt;br /&gt;
 					fprintf(stdout, x, d1,d2,d3,d4); \&lt;br /&gt;
 					fprintf(stdout, &amp;quot;\n&amp;quot;); fflush(stdout); &lt;br /&gt;
 #define LOGPRINT5(fpt,ID,ID2,x,d1,d2,d3,d4,d5) \&lt;br /&gt;
 					fprintf(fpt, &amp;quot;%-6s %-15s &amp;quot;,ID,ID2); \&lt;br /&gt;
 					fprintf(fpt, x, d1,d2,d3,d4,d5);	\&lt;br /&gt;
 					fprintf(fpt, &amp;quot;\n&amp;quot;); fflush(fpt); \&lt;br /&gt;
 					fprintf(stdout, &amp;quot;%-6s %-15s &amp;quot;,ID,ID2); \&lt;br /&gt;
 					fprintf(stdout, x, d1,d2,d3,d4,d5);	\&lt;br /&gt;
 					fprintf(stdout, &amp;quot;\n&amp;quot;); fflush(stdout);&lt;br /&gt;
 #define LOGPRINT6(fpt,ID,ID2,x,d1,d2,d3,d4,d5,d6) \&lt;br /&gt;
 					fprintf(fpt, &amp;quot;%-6s %-15s &amp;quot;,ID,ID2); \&lt;br /&gt;
 					fprintf(fpt, x, d1,d2,d3,d4,d5,d6);	\&lt;br /&gt;
 					fprintf(fpt, &amp;quot;\n&amp;quot;); fflush(fpt);  \&lt;br /&gt;
 					fprintf(stdout, &amp;quot;%-6s %-15s &amp;quot;,ID,ID2); \&lt;br /&gt;
 					fprintf(stdout, x, d1,d2,d3,d4,d5,d6);	\&lt;br /&gt;
 					fprintf(stdout, &amp;quot;\n&amp;quot;); fflush(stdout); &lt;br /&gt;
 #define LOGPRINT7(fpt,ID,ID2,x,d1,d2,d3,d4,d5,d6,d7) \&lt;br /&gt;
 					fprintf(fpt, &amp;quot;%-6s %-15s &amp;quot;,ID,ID2); \&lt;br /&gt;
 					fprintf(fpt, x, d1,d2,d3,d4,d5,d6,d7);	\&lt;br /&gt;
 					fprintf(fpt, &amp;quot;\n&amp;quot;); fflush(fpt); \&lt;br /&gt;
 					fprintf(stdout, &amp;quot;%-6s %-15s &amp;quot;,ID,ID2); \&lt;br /&gt;
 					fprintf(stdout, x, d1,d2,d3,d4,d5,d6,d7);	\&lt;br /&gt;
 					fprintf(stdout, &amp;quot;\n&amp;quot;); fflush(stdout); &lt;br /&gt;
 #define LOGPRINT8(fpt,ID,ID2,x,d1,d2,d3,d4,d5,d6,d7,d8) \&lt;br /&gt;
 					fprintf(fpt, &amp;quot;%-6s %-15s &amp;quot;,ID,ID2); \&lt;br /&gt;
 					fprintf(fpt, x, d1,d2,d3,d4,d5,d6,d7,d8);	\&lt;br /&gt;
 					fprintf(fpt, &amp;quot;\n&amp;quot;); fflush(fpt); \&lt;br /&gt;
 					fprintf(stdout, &amp;quot;%-6s %-15s &amp;quot;,ID,ID2); \&lt;br /&gt;
 					fprintf(stdout, x, d1,d2,d3,d4,d5,d6,d7,d8);	\&lt;br /&gt;
 					fprintf(stdout, &amp;quot;\n&amp;quot;); fflush(stdout); &lt;br /&gt;
 #define LOGPRINT9(fpt,ID,ID2,x,d1,d2,d3,d4,d5,d6,d7,d8,d9) \&lt;br /&gt;
 					fprintf(fpt, &amp;quot;%-6s %-15s &amp;quot;,ID,ID2); \&lt;br /&gt;
 					fprintf(fpt, x, d1,d2,d3,d4,d5,d6,d7,d8,d9);	\&lt;br /&gt;
 					fprintf(fpt, &amp;quot;\n&amp;quot;); fflush(fpt); \&lt;br /&gt;
 					fprintf(stdout, &amp;quot;%-6s %-15s &amp;quot;,ID,ID2); \&lt;br /&gt;
 					fprintf(stdout, x, d1,d2,d3,d4,d5,d6,d7,d8,d9);	\&lt;br /&gt;
 					fprintf(stdout, &amp;quot;\n&amp;quot;); fflush(stdout); &lt;br /&gt;
 #define LOGPRINT10(fpt,ID,ID2,x,d1,d2,d3,d4,d5,d6,d7,d8,d9,d10) \&lt;br /&gt;
 					fprintf(fpt, &amp;quot;%-6s %-15s &amp;quot;,ID,ID2); \&lt;br /&gt;
 					fprintf(fpt, x, d1,d2,d3,d4,d5,d6,d7,d8,d9,d10);	\&lt;br /&gt;
 					fprintf(fpt, &amp;quot;\n&amp;quot;); fflush(fpt); \&lt;br /&gt;
 					fprintf(stdout, &amp;quot;%-6s %-15s &amp;quot;,ID,ID2); \&lt;br /&gt;
 					fprintf(stdout, x, d1,d2,d3,d4,d5,d6,d7,d8,d9,d10);	\&lt;br /&gt;
 					fprintf(stdout, &amp;quot;\n&amp;quot;); fflush(stdout); &lt;br /&gt;
 #define LOGPRINT11(fpt,ID,ID2,x,d1,d2,d3,d4,d5,d6,d7,d8,d9,d10,d11) \&lt;br /&gt;
 					fprintf(fpt, &amp;quot;%-6s %-15s &amp;quot;,ID,ID2); \&lt;br /&gt;
 					fprintf(fpt, x, d1,d2,d3,d4,d5,d6,d7,d8,d9,d10,d11);	\&lt;br /&gt;
 					fprintf(fpt, &amp;quot;\n&amp;quot;); fflush(fpt); \&lt;br /&gt;
 					fprintf(stdout, &amp;quot;%-6s %-15s &amp;quot;,ID,ID2); \&lt;br /&gt;
 					fprintf(stdout, x, d1,d2,d3,d4,d5,d6,d7,d8,d9,d10,d11);	\&lt;br /&gt;
 					fprintf(stdout, &amp;quot;\n&amp;quot;); fflush(stdout); &lt;br /&gt;
 #define LOGPRINT12(fpt,ID,ID2,x,d1,d2,d3,d4,d5,d6,d7,d8,d9,d10,d11,d12) \&lt;br /&gt;
 					fprintf(fpt, &amp;quot;%-6s %-15s &amp;quot;,ID,ID2); \&lt;br /&gt;
 					fprintf(fpt, x, d1,d2,d3,d4,d5,d6,d7,d8,d9,d10,d11,d12);	\&lt;br /&gt;
 					fprintf(fpt, &amp;quot;\n&amp;quot;); fflush(fpt); \&lt;br /&gt;
 					fprintf(stdout, &amp;quot;%-6s %-15s &amp;quot;,ID,ID2); \&lt;br /&gt;
 					fprintf(stdout, x, d1,d2,d3,d4,d5,d6,d7,d8,d9,d10,d11,d12);	\&lt;br /&gt;
 					fprintf(stdout, &amp;quot;\n&amp;quot;); fflush(stdout);&lt;br /&gt;
&lt;br /&gt;
===Output debug message===&lt;br /&gt;
You can use up to 7 arguments as option.&amp;lt;br&amp;gt;&lt;br /&gt;
Add '''#define''' to '''DEBUG''' when debugging, and add '''#undef''' when releasing. Then, you can output the debug message only when debugging.&lt;br /&gt;
 #ifdef DEBUG&lt;br /&gt;
 #define DEBUGPRINT(x) fprintf(stderr,x);fflush(stderr);&lt;br /&gt;
 #define DEBUGPRINT1(x,x1) fprintf(stderr,x,x1);fflush(stderr);&lt;br /&gt;
 #define DEBUGPRINT2(x,x1,x2) fprintf(stderr,x,x1,x2);fflush(stderr);&lt;br /&gt;
 #define DEBUGPRINT3(x,x1,x2,x3) fprintf(stderr,x,x1,x2,x3);fflush(stderr);&lt;br /&gt;
 #define DEBUGPRINT4(x,x1,x2,x3,x4) fprintf(stderr,x,x1,x2,x3,x4);fflush(stderr);&lt;br /&gt;
 #define DEBUGPRINT5(x,x1,x2,x3,x4,x5) fprintf(stderr,x,x1,x2,x3,x4,x5);fflush(stderr);&lt;br /&gt;
 #define DEBUGPRINT6(x,x1,x2,x3,x4,x5,x6) fprintf(stderr,x,x1,x2,x3,x4,x5,x6);fflush(stderr);&lt;br /&gt;
 #define DEBUGPRINT7(x,x1,x2,x3,x4,x5,x6,x7) fprintf(stderr,x,x1,x2,x3,x4,x5,x6,x7);fflush(stderr)&lt;br /&gt;
 #define DEBUGCOMMAND(x) (x);&lt;br /&gt;
 #else&lt;br /&gt;
 #define DEBUGPRINT(x)&lt;br /&gt;
 #define DEBUGPRINT1(x,x1)&lt;br /&gt;
 #define DEBUGPRINT2(x,x1,x2)&lt;br /&gt;
 #define DEBUGPRINT3(x,x1,x2,x3)&lt;br /&gt;
 #define DEBUGPRINT4(x,x1,x2,x3,x4)&lt;br /&gt;
 #define DEBUGPRINT5(x,x1,x2,x3,x4,x5)&lt;br /&gt;
 #define DEBUGPRINT6(x,x1,x2,x3,x4,x5,x6)&lt;br /&gt;
 #define DEBUGPRINT7(x,x1,x2,x3,x4,x5,x6,x7)&lt;br /&gt;
 #define DEBUGCOMMAND(x)&lt;br /&gt;
 #endif&lt;br /&gt;
&lt;br /&gt;
 #ifdef DEBUG2&lt;br /&gt;
 #define DEBUG2PRINT(x) fprintf(stderr,x);fflush(stderr);&lt;br /&gt;
 #define DEBUG2PRINT1(x,x1) fprintf(stderr,x,x1);fflush(stderr);&lt;br /&gt;
 #define DEBUG2PRINT2(x,x1,x2) fprintf(stderr,x,x1,x2);fflush(stderr);&lt;br /&gt;
 #define DEBUG2PRINT3(x,x1,x2,x3) fprintf(stderr,x,x1,x2,x3);fflush(stderr);&lt;br /&gt;
 #define DEBUG2PRINT4(x,x1,x2,x3,x4) fprintf(stderr,x,x1,x2,x3,x4);fflush(stderr);&lt;br /&gt;
 #define DEBUG2PRINT5(x,x1,x2,x3,x4,x5) fprintf(stderr,x,x1,x2,x3,x4,x5);fflush(stderr);&lt;br /&gt;
 #define DEBUG2PRINT6(x,x1,x2,x3,x4,x5,x6) fprintf(stderr,x,x1,x2,x3,x4,x5,x6);fflush(stderr);&lt;br /&gt;
 #define DEBUG2PRINT7(x,x1,x2,x3,x4,x5,x6,x7) fprintf(stderr,x,x1,x2,x3,x4,x5,x6,x7);fflush(stderr)&lt;br /&gt;
 #else&lt;br /&gt;
 #define DEBUG2PRINT(x)&lt;br /&gt;
 #define DEBUG2PRINT1(x,x1)&lt;br /&gt;
 #define DEBUG2PRINT2(x,x1,x2)&lt;br /&gt;
 #define DEBUG2PRINT3(x,x1,x2,x3)&lt;br /&gt;
 #define DEBUG2PRINT4(x,x1,x2,x3,x4)&lt;br /&gt;
 #define DEBUG2PRINT5(x,x1,x2,x3,x4,x5)&lt;br /&gt;
 #define DEBUG2PRINT6(x,x1,x2,x3,x4,x5,x6)&lt;br /&gt;
 #define DEBUG2PRINT7(x,x1,x2,x3,x4,x5,x6,x7)&lt;br /&gt;
 #endif&lt;br /&gt;
&lt;br /&gt;
===エラーメッセージOutput===&lt;br /&gt;
You can use up to 7 arguments as option.&lt;br /&gt;
 #define ERRORPRINT(x) fprintf(stderr,x);&lt;br /&gt;
 #define ERRORPRINT1(x,x1) fprintf(stderr,x,x1);&lt;br /&gt;
 #define ERRORPRINT2(x,x1,x2) fprintf(stderr,x,x1,x2);&lt;br /&gt;
 #define ERRORPRINT3(x,x1,x2,x3) fprintf(stderr,x,x1,x2,x3);&lt;br /&gt;
 #define ERRORPRINT4(x,x1,x2,x3,x4) fprintf(stderr,x,x1,x2,x3,x4);&lt;br /&gt;
 #define ERRORPRINT5(x,x1,x2,x3,x4,x5) fprintf(stderr,x,x1,x2,x3,x4,x5);&lt;br /&gt;
 #define ERRORPRINT6(x,x1,x2,x3,x4,x5,x6) fprintf(stderr,x,x1,x2,x3,x4,x5,x6);&lt;br /&gt;
 #define ERRORPRINT7(x,x1,x2,x3,x4,x5,x6,x7) fprintf(stderr,x,x1,x2,x3,x4,x5,x6,x7);&lt;/div&gt;</summary>
		<author><name>Kinoshita</name></author>	</entry>

	</feed>