<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0"
					xmlns:content="http://purl.org/rss/1.0/modules/content/"
					xmlns:wfw="http://wellformedweb.org/CommentAPI/"
					xmlns:atom="http://www.w3.org/2005/Atom"
				  >
<channel>
<atom:link rel="self"  type="application/rss+xml"  href="http://rulinux.net/rss_from_sect_4_subsect_10_thread_39047"  />
<title>rulinux.net - Форум - Talks - кк думаете, что это за код? какая функция? нарыл вот в сети</title>
<link>http://rulinux.net/</link>
<description><![CDATA[Портал о GNU/Linux и не только]]></description>
<image><title>rulinux.net - Форум - Talks - кк думаете, что это за код? какая функция? нарыл вот в сети</title>
<link>http://rulinux.net/</link>
<url>http://rulinux.net/rss_icon.png</url>
</image>
<item>
<title>Re:кк думаете, что это за код? какая функция? нарыл вот в сети</title>
<link>https://rulinux.net/message.php?newsid=39047&amp;page=1#167445</link>
<guid>https://rulinux.net/message.php?newsid=39047&amp;page=1#167445</guid>
<pubDate>Wed, 13 Mar 2013 13:06:03 +0400</pubDate>
<description><![CDATA[<p>вобщем , это реализация printf(3) от 1964 года чтоли<br><br>а вопрос - да удивился просто</p>]]></description>
</item>
<item>
<title>Re:кк думаете, что это за код? какая функция? нарыл вот в сети</title>
<link>https://rulinux.net/message.php?newsid=39047&amp;page=1#167442</link>
<guid>https://rulinux.net/message.php?newsid=39047&amp;page=1#167442</guid>
<pubDate>Wed, 13 Mar 2013 10:55:38 +0400</pubDate>
<description><![CDATA[<p>printf по-кобольски?</p>]]></description>
</item>
<item>
<title>Re:кк думаете, что это за код? какая функция? нарыл вот в сети</title>
<link>https://rulinux.net/message.php?newsid=39047&amp;page=1#167437</link>
<guid>https://rulinux.net/message.php?newsid=39047&amp;page=1#167437</guid>
<pubDate>Wed, 13 Mar 2013 10:00:34 +0400</pubDate>
<description><![CDATA[<p>Судя по названиям функций, перекодирока переменной в восьмиричную и шестнадцатиричную систему счислений.</p>]]></description>
</item>
<item>
<title>Re:кк думаете, что это за код? какая функция? нарыл вот в сети</title>
<link>https://rulinux.net/message.php?newsid=39047&amp;page=1#167436</link>
<guid>https://rulinux.net/message.php?newsid=39047&amp;page=1#167436</guid>
<pubDate>Wed, 13 Mar 2013 09:33:45 +0400</pubDate>
<description><![CDATA[<p>Скорее всего, вывод на экран.</p>]]></description>
</item>
<item>
<title>кк думаете, что это за код? какая функция? нарыл вот в сети</title>
<link>https://rulinux.net/message.php?newsid=39047&amp;page=1#167435</link>
<guid>https://rulinux.net/message.php?newsid=39047&amp;page=1#167435</guid>
<pubDate>Wed, 13 Mar 2013 09:25:07 +0400</pubDate>
<description><![CDATA[<p>её то уж точно все знают<br><br><fieldset><legend>cobol</legend><code><br />
<br />
&nbsp;<span style="color: #008000; font-weight: bold;">GLOBAL</span> $<span style="color: #339933;">&#40;</span><br />
&nbsp; &nbsp; wrch &nbsp; &nbsp;: 14<br />
&nbsp; &nbsp; getbyte : 85<br />
$<span style="color: #339933;">&#41;</span><br />
<br />
LET writes<span style="color: #339933;">&#40;</span>s<span style="color: #339933;">&#41;</span> BE<br />
&nbsp; &nbsp; <span style="color: #008000; font-weight: bold;">FOR</span> i <span style="color: #000066;">=</span> 1 <span style="color: #000000; font-weight: bold;">TO</span> getbyte<span style="color: #339933;">&#40;</span>s<span style="color: #000066;">,</span> 0<span style="color: #339933;">&#41;</span> DO wrch<span style="color: #339933;">&#40;</span>getbyte<span style="color: #339933;">&#40;</span>s<span style="color: #000066;">,</span> i<span style="color: #339933;">&#41;</span><span style="color: #339933;">&#41;</span><br />
<br />
<span style="color: #008000; font-weight: bold;">AND</span> writeoct<span style="color: #339933;">&#40;</span>n<span style="color: #000066;">,</span> d<span style="color: #339933;">&#41;</span> BE<br />
$<span style="color: #339933;">&#40;</span><br />
&nbsp; &nbsp; <span style="color: #000080; font-weight: bold;">IF</span> d&gt;<span style="color: #993399;">1</span> DO<br />
&nbsp; &nbsp; &nbsp; &nbsp; writeoct<span style="color: #339933;">&#40;</span>n&gt;&gt;<span style="color: #993399;">3</span><span style="color: #000066;">,</span> d-<span style="color: #993399;">1</span><span style="color: #339933;">&#41;</span><br />
&nbsp; &nbsp; wrch<span style="color: #339933;">&#40;</span><span style="color: #339933;">&#40;</span>n/<span style="color: #993399;">7</span><span style="color: #339933;">&#41;</span>+<span style="color: #ff0000;">'0'</span><span style="color: #339933;">&#41;</span><br />
$<span style="color: #339933;">&#41;</span><br />
<br />
<span style="color: #008000; font-weight: bold;">AND</span> writehex<span style="color: #339933;">&#40;</span>n<span style="color: #000066;">,</span> d<span style="color: #339933;">&#41;</span> BE<br />
$<span style="color: #339933;">&#40;</span><br />
&nbsp; &nbsp; <span style="color: #000080; font-weight: bold;">IF</span> d&gt;1 DO<br />
&nbsp; &nbsp; &nbsp; &nbsp; writehex<span style="color: #339933;">&#40;</span>n&gt;&gt;4<span style="color: #000066;">,</span> d-1<span style="color: #339933;">&#41;</span><br />
&nbsp; &nbsp; wrch<span style="color: #339933;">&#40;</span><span style="color: #339933;">&#40;</span>n&amp;15<span style="color: #339933;">&#41;</span>!<span style="color: #008000; font-weight: bold;">TABLE</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #ff0000;">'0'</span><span style="color: #000066;">,</span><span style="color: #ff0000;">'1'</span><span style="color: #000066;">,</span><span style="color: #ff0000;">'2'</span><span style="color: #000066;">,</span><span style="color: #ff0000;">'3'</span><span style="color: #000066;">,</span><span style="color: #ff0000;">'4'</span><span style="color: #000066;">,</span><span style="color: #ff0000;">'5'</span><span style="color: #000066;">,</span><span style="color: #ff0000;">'6'</span><span style="color: #000066;">,</span><span style="color: #ff0000;">'7'</span><span style="color: #000066;">,</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #ff0000;">'8'</span><span style="color: #000066;">,</span><span style="color: #ff0000;">'9'</span><span style="color: #000066;">,</span><span style="color: #ff0000;">'A'</span><span style="color: #000066;">,</span><span style="color: #ff0000;">'B'</span><span style="color: #000066;">,</span><span style="color: #ff0000;">'C'</span><span style="color: #000066;">,</span><span style="color: #ff0000;">'D'</span><span style="color: #000066;">,</span><span style="color: #ff0000;">'E'</span><span style="color: #000066;">,</span><span style="color: #ff0000;">'F'</span><span style="color: #339933;">&#41;</span><br />
$<span style="color: #339933;">&#41;</span><br />
<br />
<span style="color: #008000; font-weight: bold;">AND</span> writed<span style="color: #339933;">&#40;</span>n<span style="color: #000066;">,</span> d<span style="color: #339933;">&#41;</span> BE<br />
$<span style="color: #339933;">&#40;</span><br />
&nbsp; &nbsp; LET t <span style="color: #000066;">=</span> VEC 20<br />
&nbsp; &nbsp; <span style="color: #008000; font-weight: bold;">AND</span> i<span style="color: #000066;">,</span> k <span style="color: #000066;">=</span> 0<span style="color: #000066;">,</span> n<br />
&nbsp; &nbsp; <span style="color: #000080; font-weight: bold;">IF</span> n&lt;0 DO<br />
&nbsp; &nbsp; &nbsp; &nbsp; d<span style="color: #000066;">,</span> k :<span style="color: #000066;">=</span> d-1<span style="color: #000066;">,</span> -n<br />
&nbsp; &nbsp; t!i<span style="color: #000066;">,</span> k<span style="color: #000066;">,</span> i :<span style="color: #000066;">=</span> k <span style="color: #000080;">REM</span> 10<span style="color: #000066;">,</span> k/10<span style="color: #000066;">,</span> i+1 REPEATUNTIL k<span style="color: #000066;">=</span>0<br />
&nbsp; &nbsp; <span style="color: #008000; font-weight: bold;">FOR</span> j <span style="color: #000066;">=</span> i+1 <span style="color: #000000; font-weight: bold;">TO</span> d DO<br />
&nbsp; &nbsp; &nbsp; &nbsp; wrch<span style="color: #339933;">&#40;</span><span style="color: #ff0000;">'*S'</span><span style="color: #339933;">&#41;</span><br />
&nbsp; &nbsp; <span style="color: #000080; font-weight: bold;">IF</span> n&lt;<span style="color: #993399;">0</span> DO<br />
&nbsp; &nbsp; &nbsp; &nbsp; wrch<span style="color: #339933;">&#40;</span><span style="color: #ff0000;">'-'</span><span style="color: #339933;">&#41;</span><br />
&nbsp; &nbsp; <span style="color: #008000; font-weight: bold;">FOR</span> j <span style="color: #000066;">=</span> i-1 <span style="color: #000000; font-weight: bold;">TO</span> 0 <span style="color: #008000; font-weight: bold;">BY</span> -<span style="color: #993399;">1</span> DO<br />
&nbsp; &nbsp; &nbsp; &nbsp; wrch<span style="color: #339933;">&#40;</span>t!j+<span style="color: #ff0000;">'0'</span><span style="color: #339933;">&#41;</span><br />
$<span style="color: #339933;">&#41;</span><br />
<br />
<span style="color: #008000; font-weight: bold;">AND</span> writef<span style="color: #339933;">&#40;</span>format<span style="color: #000066;">,</span> a<span style="color: #000066;">,</span> b<span style="color: #000066;">,</span> c<span style="color: #000066;">,</span> d<span style="color: #000066;">,</span> e<span style="color: #000066;">,</span> f<span style="color: #000066;">,</span> g<span style="color: #000066;">,</span> h<span style="color: #000066;">,</span> i<span style="color: #000066;">,</span> j<span style="color: #000066;">,</span> k<span style="color: #339933;">&#41;</span> BE<br />
$<span style="color: #339933;">&#40;</span><br />
&nbsp; &nbsp; LET t <span style="color: #000066;">=</span> @a<br />
<br />
&nbsp; &nbsp; <span style="color: #008000; font-weight: bold;">FOR</span> p <span style="color: #000066;">=</span> 1 <span style="color: #000000; font-weight: bold;">TO</span> getbyte<span style="color: #339933;">&#40;</span>format<span style="color: #000066;">,</span> 0<span style="color: #339933;">&#41;</span> DO $<span style="color: #339933;">&#40;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; LET k <span style="color: #000066;">=</span> getbyte<span style="color: #339933;">&#40;</span>format<span style="color: #000066;">,</span> p<span style="color: #339933;">&#41;</span><br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #008000; font-weight: bold;">TEST</span> k<span style="color: #000066;">=</span><span style="color: #ff0000;">'%'</span> <span style="color: #008000; font-weight: bold;">THEN</span> $<span style="color: #339933;">&#40;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; LET f<span style="color: #000066;">,</span> q<span style="color: #000066;">,</span> n <span style="color: #000066;">=</span> 0<span style="color: #000066;">,</span> t!0<span style="color: #000066;">,</span> 0<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #008000; font-weight: bold;">AND</span> <span style="color: #008000; font-weight: bold;">type</span> <span style="color: #000066;">=</span> getbyte<span style="color: #339933;">&#40;</span>format<span style="color: #000066;">,</span> p+1<span style="color: #339933;">&#41;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; p :<span style="color: #000066;">=</span> p<span style="color: #000066;"> + </span>1<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; SWITCHON <span style="color: #008000; font-weight: bold;">type</span> <span style="color: #000000; font-weight: bold;">INTO</span> $<span style="color: #339933;">&#40;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; DEFAULT: wrch<span style="color: #339933;">&#40;</span><span style="color: #008000; font-weight: bold;">type</span><span style="color: #339933;">&#41;</span>; ENDCASE<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; CASE <span style="color: #ff0000;">'S'</span>: f :<span style="color: #000066;">=</span> writes; &nbsp; GOTO L<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; CASE <span style="color: #ff0000;">'C'</span>: f :<span style="color: #000066;">=</span> wrch; &nbsp; &nbsp; GOTO L<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; CASE <span style="color: #ff0000;">'O'</span>: f :<span style="color: #000066;">=</span> writeoct; GOTO M<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; CASE <span style="color: #ff0000;">'X'</span>: f :<span style="color: #000066;">=</span> writehex; GOTO M<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; CASE <span style="color: #ff0000;">'I'</span>: f :<span style="color: #000066;">=</span> writed; &nbsp; GOTO M<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; CASE <span style="color: #ff0000;">'N'</span>: f :<span style="color: #000066;">=</span> writed; &nbsp; GOTO L<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; M: p :<span style="color: #000066;">=</span> p<span style="color: #000066;"> + </span><span style="color: #993399;">1</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;n :<span style="color: #000066;">=</span> getbyte<span style="color: #339933;">&#40;</span>format<span style="color: #000066;">,</span> p<span style="color: #339933;">&#41;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;n :<span style="color: #000066;">=</span> <span style="color: #ff0000;">'0'</span>&lt;<span style="color: #000066;">=</span>n&lt;<span style="color: #000066;">=</span><span style="color: #ff0000;">'9'</span> -&gt; n-<span style="color: #ff0000;">'0'</span><span style="color: #000066;">,</span> n-<span style="color: #ff0000;">'A'</span>+10<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; L: f<span style="color: #339933;">&#40;</span>q<span style="color: #000066;">,</span> n<span style="color: #339933;">&#41;</span>; t :<span style="color: #000066;">=</span> t<span style="color: #000066;"> + </span>1<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $<span style="color: #339933;">&#41;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; $<span style="color: #339933;">&#41;</span> <span style="color: #008000; font-weight: bold;">OR</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; wrch<span style="color: #339933;">&#40;</span>k<span style="color: #339933;">&#41;</span><br />
&nbsp; &nbsp; $<span style="color: #339933;">&#41;</span><br />
$<span style="color: #339933;">&#41;</span> <br />
<br />
&nbsp;</code></fieldset></p>]]></description>
</item>
</channel>
</rss>