<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/">
  <channel>
    <title>Clang on Benny Simmonds</title>
    <link>https://www.bencode.io/tags/clang/</link>
    <description>Recent content in Clang on Benny Simmonds</description>
    <generator>Hugo -- 0.149.1</generator>
    <language>en-us</language>
    <lastBuildDate>Sun, 17 Apr 2022 20:32:54 +1100</lastBuildDate>
    <atom:link href="https://www.bencode.io/tags/clang/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>C</title>
      <link>https://www.bencode.io/posts/c/</link>
      <pubDate>Sat, 26 Nov 2016 22:39:01 +1100</pubDate>
      <guid>https://www.bencode.io/posts/c/</guid>
      <description>&lt;p&gt;&lt;em&gt;Update: 2022-04-26&lt;/em&gt;: Overhauling to be simplier and bsd/clang friendly.&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href=&#34;#rules-of-engagement&#34;&gt;Rules of engagement&lt;/a&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href=&#34;#style&#34;&gt;Style&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;&lt;a href=&#34;#the-language&#34;&gt;The language&lt;/a&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href=&#34;#basic-types&#34;&gt;Basic Types&lt;/a&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href=&#34;#integer-types&#34;&gt;Integer Types&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&#34;#real-and-complex-floating-types&#34;&gt;Real and Complex Floating Types&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&#34;#void&#34;&gt;void&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;&lt;a href=&#34;#memory-access-operators&#34;&gt;Memory Access Operators&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&#34;#strings&#34;&gt;Strings&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;&lt;a href=&#34;#the-pre-processor&#34;&gt;The Pre Processor&lt;/a&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href=&#34;#macros&#34;&gt;Macros&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;&lt;a href=&#34;#patterns&#34;&gt;Patterns&lt;/a&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href=&#34;#vtables&#34;&gt;vtables&lt;/a&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href=&#34;#person_s.h&#34;&gt;person_s.h&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&#34;#print_vtable.h&#34;&gt;print_vtable.h&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&#34;#print_vtable.c&#34;&gt;print_vtable.c&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&#34;#main.c&#34;&gt;main.c&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;&lt;a href=&#34;#libraries&#34;&gt;Libraries&lt;/a&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href=&#34;#c-standard-library&#34;&gt;C standard library&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&#34;#c-posix-library&#34;&gt;C POSIX library&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&#34;#unit-testing&#34;&gt;Unit Testing&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;&lt;a href=&#34;#sample-c-code&#34;&gt;Sample C code&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;h2 id=&#34;rules-of-engagement&#34;&gt;Rules of engagement&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href=&#34;https://www.youtube.com/watch?v=443UNeGrFoM&#34;&gt;How I program C by Eskil Steenberg&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&#34;http://doc.cat-v.org/bell_labs/pikestyle&#34;&gt;Notes on Programming in C by Rob Pike&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&#34;http://doc.cat-v.org/henry_spencer/ten-commandments&#34;&gt;The Ten Commandments for C Programmers by Henry Spencer&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;h3 id=&#34;style&#34;&gt;Style&lt;/h3&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href=&#34;https://suckless.org/coding_style/&#34;&gt;suckless&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;FreeBSD &lt;code&gt;man 9 style&lt;/code&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;h2 id=&#34;the-language&#34;&gt;The language&lt;/h2&gt;
&lt;h3 id=&#34;basic-types&#34;&gt;Basic Types&lt;/h3&gt;
&lt;h4 id=&#34;integer-types&#34;&gt;Integer Types&lt;/h4&gt;
&lt;p&gt;C99 with &lt;code&gt;stdbool.h&lt;/code&gt; introduced boolean type &lt;code&gt;_Bool&lt;/code&gt; (1 byte), and macros &lt;code&gt;true&lt;/code&gt; (1) and &lt;code&gt;false&lt;/code&gt; (0).&lt;/p&gt;</description>
    </item>
  </channel>
</rss>
