<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>C on grzenow</title><link>http://www.grzenow.com/tags/c/</link><description>Recent content in C on grzenow</description><generator>Hugo</generator><language>en</language><lastBuildDate>Sat, 11 Feb 2023 00:00:00 +0000</lastBuildDate><atom:link href="http://www.grzenow.com/tags/c/index.xml" rel="self" type="application/rss+xml"/><item><title>Executor</title><link>http://www.grzenow.com/projects/executor/</link><pubDate>Sat, 11 Feb 2023 00:00:00 +0000</pubDate><guid>http://www.grzenow.com/projects/executor/</guid><description>&lt;p&gt;&lt;strong&gt;Executor&lt;/strong&gt; is a concurrent programming project. It is a program that executes tasks, monitors their latest outputs (during execution) and terminates them if desired.&lt;/p&gt;&#10;&lt;p&gt;The handling of processes has been synchronized in such a way that the Executor immediately informs about task completion and continuously cleans up finished processes or threads it creates. All of this is done without using busy waiting, ensuring CPU resources are not wasted.&lt;/p&gt;&#10;&lt;p&gt;A detailed task description (in Polish, though) can be found at the GitHub link below.&lt;/p&gt;</description></item><item><title>Sparse Multivariate Polynomials</title><link>http://www.grzenow.com/projects/ipp-polynomials/</link><pubDate>Mon, 21 Jun 2021 00:00:00 +0000</pubDate><guid>http://www.grzenow.com/projects/ipp-polynomials/</guid><description>&lt;p&gt;This is a comprehensive project written in C, aimed at implementing fundamental operations on sparse multivariate polynomials, such as addition, subtraction, multiplication, and exponentiation.&lt;/p&gt;&#10;&lt;p&gt;The second part of the project is a polynomial calculator that utilizes reverse Polish notation. It allows performing arithmetic operations and displaying the current polynomial on the stack.&lt;/p&gt;&#10;&lt;p&gt;The implementation is optimized for efficient dynamic memory allocation, minimizing unnecessary copying and memory allocations. Additionally, the project ensures proper deallocation of all allocated memory, preventing memory leaks. The entire project is documented in Doxygen format.&lt;/p&gt;</description></item><item><title>Pętlik</title><link>http://www.grzenow.com/projects/petlik/</link><pubDate>Tue, 19 Jan 2021 00:00:00 +0000</pubDate><guid>http://www.grzenow.com/projects/petlik/</guid><description>&lt;p&gt;&lt;strong&gt;Pętlik&lt;/strong&gt; is a small programming language, which syntax is defined by the following grammar with the start symbol &lt;code&gt;Program&lt;/code&gt;:&lt;/p&gt;&#10;&lt;pre tabindex="0"&gt;&lt;code&gt;Program → InstructionSequence&#10;InstructionSequence → ε | InstructionSequence Instruction&#10;Instruction → Increment | Repeat&#10;Increment → Variable&#10;Repeat → &amp;#39;(&amp;#39; Variable InstructionSequence &amp;#39;)&amp;#39;&#10;Variable → &amp;#39;a&amp;#39; | ... | &amp;#39;z&amp;#39;&#10;&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;&lt;strong&gt;Instructions:&lt;/strong&gt;&lt;/p&gt;&#10;&lt;ul&gt;&#10;&lt;li&gt;&lt;code&gt;Increment&lt;/code&gt;: equivalent to &lt;code&gt;++variable&lt;/code&gt; in C, incrementing the variable by 1.&lt;/li&gt;&#10;&lt;li&gt;&lt;code&gt;Repeat&lt;/code&gt;: equivalent to a C-style &lt;code&gt;while&lt;/code&gt; loop:&#10;&lt;div class="highlight"&gt;&lt;pre tabindex="0" style="color:#e6edf3;background-color:#0d1117;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"&gt;&lt;code class="language-c" data-lang="c"&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;&lt;span style="color:#ff7b72"&gt;while&lt;/span&gt; (variable &lt;span style="color:#ff7b72;font-weight:bold"&gt;&amp;gt;&lt;/span&gt; &lt;span style="color:#a5d6ff"&gt;0&lt;/span&gt;) {&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; &lt;span style="color:#ff7b72;font-weight:bold"&gt;--&lt;/span&gt;variable;&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; ...&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;}&#10;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/li&gt;&#10;&lt;/ul&gt;&#10;&lt;p&gt;The project consist of two components:&lt;/p&gt;</description></item></channel></rss>