825 lines
37 KiB
HTML
825 lines
37 KiB
HTML
<!DOCTYPE html>
|
||
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
||
<!-- START: two lines up starts content from: inc/top.default.html -->
|
||
|
||
<!-- END: this line ends content from: inc/top.default.html -->
|
||
<!-- START: this line starts content from: inc/head.default.html -->
|
||
|
||
<head>
|
||
<link rel="stylesheet" href="../ioccc.css">
|
||
<link href="https://fonts.googleapis.com/css2?family=Outfit:wght@100..900&display=swap" rel="stylesheet">
|
||
<meta charset="utf-8">
|
||
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes">
|
||
<title>The International Obfuscated C Code Contest</title>
|
||
<link rel="icon" type="image/x-icon" href="../favicon.ico">
|
||
<meta name="description" content="IOCCC Rules">
|
||
<meta name="keywords" content="IOCCC, rules, Rules">
|
||
</head>
|
||
|
||
<!-- !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->
|
||
<!-- !!! DO NOT MODIFY THIS FILE - This file is generated by a tool !!! -->
|
||
<!-- !!! DO NOT MODIFY THIS FILE - This file is generated by a tool !!! -->
|
||
<!-- !!! DO NOT MODIFY THIS FILE - This file is generated by a tool !!! -->
|
||
<!-- !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->
|
||
|
||
<!-- END: this line ends content from: inc/head.default.html -->
|
||
|
||
<!-- -->
|
||
<!-- This web page was formed via the tool: bin/gen-top-html.sh -->
|
||
<!-- The content of main section of this web page came from: next/rules.md -->
|
||
<!-- -->
|
||
|
||
<!-- !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->
|
||
<!-- !!! Do not modify this web page, instead modify the file: next/rules.md !!! -->
|
||
<!-- !!! Do not modify this web page, instead modify the file: next/rules.md !!! -->
|
||
<!-- !!! Do not modify this web page, instead modify the file: next/rules.md !!! -->
|
||
<!-- !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->
|
||
|
||
<!-- Markdown content was converted into HTML via the tool: bin/md2html.sh -->
|
||
|
||
<!-- START: this line starts content from: inc/body.default.html -->
|
||
|
||
<body>
|
||
|
||
<!-- END: this line ends content from: inc/body.default.html -->
|
||
<!-- START: this line starts content from: inc/topbar.default.html -->
|
||
|
||
<div class="theader">
|
||
<nav class="topbar">
|
||
<div class="container">
|
||
<div class="logo">
|
||
<a href="../index.html" class="logo-link">
|
||
IOCCC
|
||
</a>
|
||
</div>
|
||
|
||
<div class="topbar-items">
|
||
<div class="item">
|
||
<span class="item-header">
|
||
Entries
|
||
</span>
|
||
|
||
<div class="sub-item">
|
||
|
||
<div class="outfit-font">
|
||
<a href="../years.html" class="sub-item-link">
|
||
Winning entries
|
||
</a>
|
||
</div>
|
||
|
||
<div class="outfit-font">
|
||
<a href="../authors.html" class="sub-item-link">
|
||
Winning authors
|
||
</a>
|
||
</div>
|
||
|
||
<div class="outfit-font">
|
||
<a href="../location.html" class="sub-item-link">
|
||
Location of authors
|
||
</a>
|
||
</div>
|
||
|
||
<div class="outfit-font">
|
||
<a href="../bugs.html" class="sub-item-link">
|
||
Bugs and (mis)features
|
||
</a>
|
||
</div>
|
||
|
||
<div class="outfit-font">
|
||
<a href="../faq.html#fix_an_entry" class="sub-item-link">
|
||
Fixing entries
|
||
</a>
|
||
</div>
|
||
|
||
<div class="outfit-font">
|
||
<a href="../faq.html#fix_author" class="sub-item-link">
|
||
Updating author info
|
||
</a>
|
||
</div>
|
||
|
||
</div>
|
||
</div>
|
||
|
||
<div class="item">
|
||
<span class="item-header">
|
||
Status
|
||
</span>
|
||
|
||
<div class="sub-item">
|
||
|
||
<div class="outfit-font">
|
||
<a href="../news.html" class="sub-item-link">
|
||
News
|
||
</a>
|
||
</div>
|
||
|
||
<div class="outfit-font">
|
||
<a href="../status.html" class="sub-item-link">
|
||
Contest status
|
||
</a>
|
||
</div>
|
||
|
||
<div class="outfit-font">
|
||
<a href="../next/rules.html" class="sub-item-link">
|
||
IOCCC rules
|
||
</a>
|
||
</div>
|
||
|
||
<div class="outfit-font">
|
||
<a href="../next/guidelines.html" class="sub-item-link">
|
||
IOCCC guidelines
|
||
</a>
|
||
</div>
|
||
|
||
<div class="outfit-font">
|
||
<a href="../markdown.html" class="sub-item-link">
|
||
Markdown guidelines
|
||
</a>
|
||
</div>
|
||
|
||
<div class="outfit-font">
|
||
<a href="../SECURITY.html" class="sub-item-link">
|
||
Security policy
|
||
</a>
|
||
</div>
|
||
|
||
</div>
|
||
</div>
|
||
|
||
<div class="item">
|
||
<span class="item-header">
|
||
FAQ
|
||
</span>
|
||
|
||
<div class="sub-item">
|
||
|
||
<div class="outfit-font">
|
||
<a href="../faq.html" class="sub-item-link">
|
||
Frequently asked questions
|
||
</a>
|
||
</div>
|
||
|
||
<div class="outfit-font">
|
||
<a href="../quick-start.html#enter" class="sub-item-link">
|
||
Enter the IOCCC
|
||
</a>
|
||
</div>
|
||
|
||
<div class="outfit-font">
|
||
<a href="../faq.html#compiling" class="sub-item-link">
|
||
Compiling entries
|
||
</a>
|
||
</div>
|
||
|
||
<div class="outfit-font">
|
||
<a href="../faq.html#running_entries" class="sub-item-link">
|
||
Running entries
|
||
</a>
|
||
</div>
|
||
|
||
<div class="outfit-font">
|
||
<a href="../faq.html#help" class="sub-item-link">
|
||
How to help
|
||
</a>
|
||
</div>
|
||
|
||
</div>
|
||
</div>
|
||
|
||
<div class="item">
|
||
<span class="item-header">
|
||
About
|
||
</span>
|
||
|
||
<div class="sub-item">
|
||
|
||
<div class="outfit-font">
|
||
<a href="../index.html" class="sub-item-link">
|
||
Home page
|
||
</a>
|
||
</div>
|
||
|
||
<div class="outfit-font">
|
||
<a href="../social.html" class="sub-item-link">
|
||
IOCCC social media
|
||
</a>
|
||
</div>
|
||
|
||
<div class="outfit-font">
|
||
<a href="../about.html" class="sub-item-link">
|
||
About the IOCCC
|
||
</a>
|
||
</div>
|
||
|
||
<div class="outfit-font">
|
||
<a href="../judges.html" class="sub-item-link">
|
||
The judges
|
||
</a>
|
||
</div>
|
||
|
||
<div class="outfit-font">
|
||
<a href="../thanks-for-help.html" class="sub-item-link">
|
||
Thanks for the help
|
||
</a>
|
||
</div>
|
||
|
||
<div class="outfit-font">
|
||
<a href="../contact.html" class="sub-item-link">
|
||
Contact us
|
||
</a>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</nav>
|
||
|
||
<div class="header-mobile-menu">
|
||
<noscript>
|
||
<a href="../nojs-menu.html" class="topbar-js-label">
|
||
Please Enable JavaScript
|
||
</a>
|
||
</noscript>
|
||
|
||
<button id="header-open-menu-button" class="topbar-mobile-menu">
|
||
<img
|
||
src="../png/hamburger-icon-open.png"
|
||
alt="hamburger style menu icon - open state"
|
||
width=48
|
||
height=48>
|
||
</button>
|
||
|
||
<button id="header-close-menu-button" class="hide-content">
|
||
<img
|
||
src="../png/hamburger-icon-closed.png"
|
||
alt="hamburger style menu icon - closed state"
|
||
width=48
|
||
height=48>
|
||
</button>
|
||
|
||
<div id="mobile-menu-panel" class="hide-content">
|
||
<div class="mobile-menu-container">
|
||
|
||
<div class="mobile-menu-wrapper">
|
||
<div class="mobile-menu-item">
|
||
Entries
|
||
</div>
|
||
<div class="mobile-submenu-wrapper">
|
||
|
||
<a class="mobile-submenu-item" href="../years.html">
|
||
Winning entries
|
||
</a>
|
||
|
||
<a class="mobile-submenu-item" href="../authors.html">
|
||
Winning authors
|
||
</a>
|
||
|
||
<a class="mobile-submenu-item" href="../location.html">
|
||
Location of authors
|
||
</a>
|
||
|
||
<a class="mobile-submenu-item" href="../bugs.html">
|
||
Bugs and (mis)features
|
||
</a>
|
||
|
||
<a class="mobile-submenu-item" href="../faq.html#fix_an_entry">
|
||
Fixing entries
|
||
</a>
|
||
|
||
<a class="mobile-submenu-item" href="../faq.html#fix_author">
|
||
Updating author info
|
||
</a>
|
||
|
||
<a class="mobile-submenu-item" href="../thanks-for-help.html">
|
||
Thanks for the help
|
||
</a>
|
||
|
||
</div>
|
||
</div>
|
||
|
||
<div class="mobile-menu-wrapper">
|
||
|
||
<div class="mobile-menu-item">
|
||
Status
|
||
</div>
|
||
<div class="mobile-submenu-wrapper">
|
||
|
||
<a class="mobile-submenu-item" href="../news.html">
|
||
News
|
||
</a>
|
||
|
||
<a class="mobile-submenu-item" href="../status.html">
|
||
Contest status
|
||
</a>
|
||
|
||
<a class="mobile-submenu-item" href="../next/rules.html">
|
||
IOCCC rules
|
||
</a>
|
||
|
||
<a class="mobile-submenu-item" href="../next/guidelines.html">
|
||
IOCCC guidelines
|
||
</a>
|
||
|
||
<a class="mobile-submenu-item" href="../markdown.html">
|
||
Markdown guidelines
|
||
</a>
|
||
|
||
<a class="mobile-submenu-item" href="../SECURITY.html">
|
||
Security policy
|
||
</a>
|
||
|
||
</div>
|
||
</div>
|
||
|
||
<div class="mobile-menu-wrapper">
|
||
<div class="mobile-menu-item">
|
||
FAQ
|
||
</div>
|
||
<div class="mobile-submenu-wrapper">
|
||
|
||
<a class="mobile-submenu-item" href="../faq.html">
|
||
Frequently asked questions
|
||
</a>
|
||
|
||
<a class="mobile-submenu-item" href="../quick-start.html#enter">
|
||
Enter the IOCCC
|
||
</a>
|
||
|
||
<a class="mobile-submenu-item" href="../faq.html#compiling">
|
||
Compiling entries
|
||
</a>
|
||
|
||
<a class="mobile-submenu-item" href="../faq.html#running_entries">
|
||
Running entries
|
||
</a>
|
||
|
||
<a class="mobile-submenu-item" href="../faq.html#help">
|
||
How to help
|
||
</a>
|
||
|
||
</div>
|
||
</div>
|
||
|
||
<div class="mobile-menu-wrapper">
|
||
<div class="mobile-menu-item">
|
||
About
|
||
</div>
|
||
<div class="mobile-submenu-wrapper">
|
||
|
||
<a class="mobile-submenu-item" href="../index.html">
|
||
Home page
|
||
</a>
|
||
|
||
<a class="mobile-submenu-item" href="../social.html">
|
||
IOCCC social media
|
||
</a>
|
||
|
||
<a class="mobile-submenu-item" href="../about.html">
|
||
About the IOCCC
|
||
</a>
|
||
|
||
<a class="mobile-submenu-item" href="../judges.html">
|
||
The judges
|
||
</a>
|
||
|
||
<a class="mobile-submenu-item" href="../contact.html">
|
||
Contact us
|
||
</a>
|
||
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
|
||
</div>
|
||
|
||
<script>
|
||
var headerOpenMenuButton = document.getElementById("header-open-menu-button");
|
||
var headerCloseMenuButton = document.getElementById("header-close-menu-button");
|
||
var mobileMenuPanel = document.getElementById("mobile-menu-panel");
|
||
|
||
headerOpenMenuButton.addEventListener("click", () => {
|
||
headerOpenMenuButton.classList.remove("topbar-mobile-menu");
|
||
headerOpenMenuButton.classList.add("hide-content");
|
||
|
||
headerCloseMenuButton.classList.remove("hide-content");
|
||
headerCloseMenuButton.classList.add("topbar-mobile-menu");
|
||
|
||
mobileMenuPanel.classList.remove("hide-content");
|
||
mobileMenuPanel.classList.add("topbar-mobile-panel");
|
||
});
|
||
|
||
headerCloseMenuButton.addEventListener("click", () => {
|
||
headerCloseMenuButton.classList.remove("topbar-mobile-menu");
|
||
headerCloseMenuButton.classList.add("hide-content");
|
||
|
||
mobileMenuPanel.classList.add("hide-content");
|
||
mobileMenuPanel.classList.remove("topbar-mobile-panel");
|
||
|
||
headerOpenMenuButton.classList.add("topbar-mobile-menu");
|
||
headerOpenMenuButton.classList.remove("hide-content");
|
||
});
|
||
</script>
|
||
|
||
<!-- END: this line ends content from: inc/topbar.default.html -->
|
||
<!-- START: this line starts content from: inc/header.default.html -->
|
||
|
||
<div class="header">
|
||
<a href="../2011/zucker/index.html">
|
||
<img src="../png/ioccc.png"
|
||
alt="IOCCC image by Matt Zucker"
|
||
width=300
|
||
height=110>
|
||
</a>
|
||
<h1>The International Obfuscated C Code Contest</h1>
|
||
<h2>IOCCC Rules</h2>
|
||
</div>
|
||
|
||
<!-- END: this line ends content from: inc/header.default.html -->
|
||
<!-- START: this line starts content from: inc/navbar.empty.html -->
|
||
|
||
<div class="navbar">
|
||
<a class="Right" href="https://validator.w3.org/nu/?doc=https%3A%2F%2Fwww.ioccc.org%2Fnext%2Frules.html">✓</a>
|
||
</div>
|
||
|
||
<!-- END: this line ends content from: inc/navbar.empty.html -->
|
||
<!-- START: this line starts content from: inc/before-content.default.html -->
|
||
|
||
<div class="content" id="content">
|
||
|
||
<!-- END: this line ends content from: inc/before-content.default.html -->
|
||
<!-- START: this line starts content for HTML phase 21 by: bin/pandoc-wrapper.sh via bin/md2html.sh -->
|
||
|
||
<!-- BEFORE: 1st line of markdown file: next/rules.md -->
|
||
<!-- START: this line starts content from: inc/rules.closed.hdr -->
|
||
<h1 id="the-ioccc-is-closed">The IOCCC is closed</h1>
|
||
<p>The IOCCC is <strong>NOT</strong> accepting new submissions at this time. See the
|
||
<a href="../years.html">IOCCC winning entries page</a> for the entries that have won the
|
||
IOCCC in the past.</p>
|
||
<p>These rules are a <strong>TENTATIVE proposal</strong> for the next IOCCC
|
||
and are <strong>likely be to be updated</strong> before the next IOCCC.</p>
|
||
<p>See our
|
||
FAQ on “<a href="../faq.html#feedback">rules, guidelines, tools feedback</a>”
|
||
as well as our
|
||
FAQ on “<a href="../faq.html#question">about asking questions</a>”
|
||
about these rules. You might also find the FAQ in general useful, especially the
|
||
FAQ on “<a href="../quick-start.html#enter">how to enter the IOCCC</a>”.</p>
|
||
<p>Watch both <a href="../status.html">the IOCCC status page</a> and the
|
||
<a href="https://fosstodon.org/@ioccc"><span class="citation" data-cites="IOCCC">@IOCCC</span> mastodon feed</a> for information about
|
||
future IOCCC openings.</p>
|
||
<p><strong>HINT to mastodon users</strong>: You may wish to refresh the <a href="https://fosstodon.org/@ioccc"><span class="citation" data-cites="IOCCC">@IOCCC</span>
|
||
mastodon feed</a> page and/or mastodon
|
||
app from time to time to view IOCCC mastodon updates.</p>
|
||
<!-- END: the next line ends content from: inc/rules.closed.hdr -->
|
||
<!-- This is the last line modified by the tool: bin/gen-status.sh -->
|
||
<h2 id="th-international-obfuscated-c-code-contest-official-rules">29th International Obfuscated C Code Contest Official Rules</h2>
|
||
<p>Copyright © 2024-2025 Leonid A. Broukhis and Landon Curt Noll.</p>
|
||
<p>All Rights Reserved. Permission for personal, education or non-profit use is
|
||
granted provided this this copyright and notice are included in its entirety
|
||
and remains unaltered. All other uses <strong>MUST</strong> receive prior permission in
|
||
writing by <a href="../contact.html">contacting the judges</a>.</p>
|
||
<h2 id="rules-version">Rules version</h2>
|
||
<p>These IOCCC Rules are version <strong>29.02 2025-11-19</strong>.</p>
|
||
<p>Be sure to read the <a href="guidelines.html">IOCCC guidelines</a>.</p>
|
||
<h2 id="rule-0-dates">Rule 0 Dates</h2>
|
||
<p>This IOCCC runs from ${START_DATE_TIME} UTC to ${CLOSE_DATE_TIME} UTC.</p>
|
||
<p>This contest will enter the open state on ${OPEN_DATE_TIME} UTC.</p>
|
||
<p>This contest will enter the judging state on ${JUDGMENT_DATE_TIME} UTC.</p>
|
||
<p>The above dates are subject to change until the contest is officially open.</p>
|
||
<p><strong>NOTE</strong>: As of this draft, the above dates are TBD (to be determined).</p>
|
||
<h2 id="rule-1-program">Rule 1 Program</h2>
|
||
<p>Your submission <strong>MUST</strong> be a C program.</p>
|
||
<h2 id="rule-2-size">Rule 2 Size</h2>
|
||
<p><code>Rule 2</code> requires that your submission satisfy <strong>BOTH</strong>
|
||
<a href="rules.html#rule-2a-gross-size">Rule 2a Gross Size</a>
|
||
and
|
||
<a href="rules.html#rule-2b-net-size">Rule 2b Next Size</a>.
|
||
During development this can be checked using <code>iocccsize(1)</code>:</p>
|
||
<p>iocccsize prog.c</p>
|
||
<h3 id="rule-2a-gross-size">Rule 2a Gross Size</h3>
|
||
<p>The overall maximum size of your <code>prog.c</code> program source <strong>MUST NOT</strong>
|
||
exceed <strong>4993</strong> bytes.</p>
|
||
<h3 id="rule-2b-net-size">Rule 2b Net Size</h3>
|
||
<p>When the filename of your program source (i.e., <code>prog.c</code>) is given as a
|
||
command line argument to the latest version of the official IOCCC size
|
||
tool (hereby referred to as <code>iocccsize(1)</code>), the value printed <strong>MUST
|
||
NOT</strong> exceed <strong>2503</strong>.</p>
|
||
<h2 id="rule-3-register">Rule 3 Register</h2>
|
||
<p>You <strong>MUST</strong> register, using a valid email address, in order to submit
|
||
entries to the IOCCC. You may register while the contest is <strong>pending</strong> or <strong>open</strong>.</p>
|
||
<p>A few days after registering, you’ll receive your UUID username and
|
||
temporary password, which you <strong>MUST</strong> change within 14 days. If you
|
||
fail to change it in a timely manner, you’ll need to
|
||
<a href="../contact.html">contact the Judges</a> by email to request a reset.</p>
|
||
<p>It can take a few days to process your registration and for the server to
|
||
email your details, therefore make sure to allow yourself ample time to
|
||
register and submit your entries; <strong>DO NOT WAIT UNTIL THE FINAL DAYS</strong>
|
||
to register! The judges are <strong>NOT</strong> responsible for delayed or lost
|
||
email or for those who wait until the last minute to try to register!</p>
|
||
<p>See <a href="../quick-start.html#enter">Entering the IOCCC: the bare minimum you need to know</a>.</p>
|
||
<p>See <a href="rules.html#rule-8-submission">Rule 8 Submission</a>.</p>
|
||
<h2 id="rule-4-files">Rule 4 Files</h2>
|
||
<p>The submission <strong>MUST</strong> include at least these files: <code>Makefile</code>, <code>prog.c</code>,
|
||
<code>remarks.md</code>,<code>.info.json</code>, and <code>.auth.json</code>. The last two <strong>MUST</strong> be
|
||
generated by <code>mkiocccenty(1)</code> when packing a submission, and <strong>MUST</strong>
|
||
pass the <code>chksubmit(1)</code> tests.</p>
|
||
<p>The <code>Makefile</code>, <code>remarks.md</code>,<code>.info.json</code>, and <code>.auth.json</code> <strong>MUST</strong>
|
||
have a file size <strong>greater than 0</strong>.</p>
|
||
<p>Your submitted source code <strong>MUST</strong> be called <code>prog.c</code>. When the <code>Makefile</code>
|
||
compiles your code, the executable (if applicable) <strong>MUST</strong> be called <code>prog</code>.
|
||
The `<code>Makefile</code> may compile your source code into other filenames as well.</p>
|
||
<p>As <code>prog</code>, <code>prog.alt</code>, <code>prog.alt.o</code>, <code>prog.o</code> may be created by your
|
||
<code>Makefile</code>, your submission <strong>MUST NOT</strong> include those files in
|
||
your top directory, as original content.</p>
|
||
<p>Your submission may <strong>NOT</strong> have any file that starts with <code>COPYING</code>,
|
||
<code>COPYRIGHT</code>, or <code>LICENSE</code> as those files are reserved by IOCCC.</p>
|
||
<p>Your submission may <strong>NOT</strong> have in the top directory, <code>prog.orig.c</code>,
|
||
<code>README.md</code>, nor <code>index.html</code> as those files reserved by IOCCC.</p>
|
||
<p>Your submission may <strong>NOT</strong> have in the top directory, any file
|
||
that matches a file glob pattern form <code>[0-9][0-9][0-9][0-9]_*.tar.bz2</code>
|
||
as those files are reserved by IOCCC.</p>
|
||
<p>Your submission may <strong>ONLY</strong> contain files and directories. Other file
|
||
types such as symlinks, sockets, etc are <strong>NOT</strong> allowed.</p>
|
||
<p>All directories <strong>MUST</strong> have a file mode of <strong>0755</strong>. All files
|
||
<strong>MUST</strong> have the file mode of <strong>0444</strong>, except for files that
|
||
end in <code>.sh</code> which must have a mode of <strong>0555</strong>.</p>
|
||
<p>All files that end in <code>.md</code> <strong>MUST</strong> be in markdown format.
|
||
We recommend that markdown files observe our
|
||
<a href="../markdown.html">IOCCC markdown guidelines</a>.</p>
|
||
<p>All filenames are treated as case insensitive. For example, <code>REMARKS.MD</code>,
|
||
and <code>Remarks.md</code>, and <code>remarks.md</code> are considered by <code>mkiocccenty(1)</code>
|
||
to be the <strong>SAME</strong> file. If you are preparing your submission on a case
|
||
sensitive filesystem, ensure that your submission will work on
|
||
a case insensitive filesystem.</p>
|
||
<p>The <code>remarks.md</code> and <code>Makefile</code> are explained in more detail in the Guidelines.</p>
|
||
<p>See <a href="../markdown.html">IOCCC markdown guidelines</a>.</p>
|
||
<p>See <a href="rules.html#rule-17-packaging">Rule 17 Packaging</a>.</p>
|
||
<h2 id="rule-5-purity">Rule 5 Purity</h2>
|
||
<p>Your submission <strong>MUST NOT</strong> modify the filenames or content of any of
|
||
your original submission, such as <code>prog.c</code>, <code>Makefile</code>, or any supplied
|
||
data files. To modify files, your program can make a copy or you can
|
||
use the Makefile to setup working copies. Any working copies <strong>MUST</strong> be
|
||
cleaned up by the <code>Makefile</code> <code>clobber</code> target, so as to restore the
|
||
directory to its original state.</p>
|
||
<p>Your submission <strong>MUST NOT</strong> create or modify directories and files
|
||
ABOVE the current directory with the exception of the <code>/tmp</code> and the
|
||
<code>/var/tmp</code> directories as long as the directory name or filename does
|
||
<strong>NOT</strong> start with “.” (dot).</p>
|
||
<p>The <code>Makefile</code> <code>clobber</code> target <strong>MUST</strong> be restore your submission into
|
||
original form, including the removal of any created files and directories.</p>
|
||
<p>Your code should be able to run under a
|
||
<a href="https://pubs.opengroup.org/onlinepubs/9799919799/">SUS environment</a>.</p>
|
||
<h2 id="rule-6-free">Rule 6 Free</h2>
|
||
<p>I am <strong>NOT</strong> a Rule, I am a <code>free(void *human);</code> ‼️</p>
|
||
<div class="sourceCode" id="cb1"><pre class="sourceCode c"><code class="sourceCode c"><span id="cb1-1"><a href="#cb1-1" aria-hidden="true" tabindex="-1"></a> <span class="cf">while</span> <span class="op">(!(</span>ioccc<span class="op">(</span>rule<span class="op">(</span>you<span class="op">(</span>are<span class="op">(</span>number<span class="op">(</span><span class="dv">6</span><span class="op">))))))</span> <span class="op">{</span></span>
|
||
<span id="cb1-2"><a href="#cb1-2" aria-hidden="true" tabindex="-1"></a> ha<span class="op">();</span> ha<span class="op">();</span> ha<span class="op">();</span></span>
|
||
<span id="cb1-3"><a href="#cb1-3" aria-hidden="true" tabindex="-1"></a> <span class="op">}</span></span></code></pre></div>
|
||
<p>See <a href="rules.html#rule-19-prime">Rule 19 Prime</a>.</p>
|
||
<h2 id="rule-7-original-work">Rule 7 Original Work</h2>
|
||
<p>In short: You wrote it, you own it, and its an original work.</p>
|
||
<p>You, the author(s), <strong>MUST</strong> own the contents of your submission, or you <strong>MUST</strong>
|
||
have permission from the original owner(s) to its use. If you submit
|
||
any content that is owned by others, you <strong>MUST</strong> detail that ownership,
|
||
i.e., who owns what, and document the permission you obtained from them
|
||
in your <code>remarks.md</code> file.</p>
|
||
<p>The IOCCC has a rich history of remarkable winning entries created by
|
||
authors who skilfully employed various techniques to develop their code.
|
||
While it isn’t required, you are allowed to use tools to develop and
|
||
test your submission. These tools may include, but aren’t limited to
|
||
code generators, code analysis tools, static code analysis tools, runtime
|
||
analysis tools, machine learning tools, natural language models, code
|
||
copilot tools, so-called AI services, large language models (LLMs), etc.
|
||
If you do make use of such tools or services, then we encourage you to
|
||
describe what tools and how you used those tools, in your <code>remarks.md</code> file.</p>
|
||
<p>See <a href="rules.html#rule-16-anonymous">Rule 16 Anonymous</a>.</p>
|
||
<h2 id="rule-8-submission">Rule 8 Submission</h2>
|
||
<p>The Submit Server will only accept submissions from those who have
|
||
registered and only while the contest is open.</p>
|
||
<p>The Submit Server places a total submission size limit of <strong>3999971</strong> bytes.</p>
|
||
<p>Each account has ten (<strong>10.000</strong>) submission slots (<strong>0..9)</strong>. Each submission
|
||
slot should be annotated by the server as to whether its was received,
|
||
processed, malformed, etc. Please take note of any errors, rectify,
|
||
and resubmit. In order to avoid potential packaging errors, it is <strong>highly
|
||
recommended</strong> to use <code>mkiocccentry(1)</code>.</p>
|
||
<p>See
|
||
<a href="rules.html#rule-3-register">Rule 3 Register</a>,
|
||
<a href="rules.html#rule-15-building">Rule 15 Building</a>,
|
||
and
|
||
<a href="rules.html#rule-17-packaging">Rule 17 Packaging</a>.</p>
|
||
<h2 id="rule-9-no-hands">Rule 9 No hands</h2>
|
||
<p>Entries requiring human interaction to be initially compiled are <strong>NOT</strong>
|
||
permitted. However, see the guidelines. Each entry <strong>MUST</strong> automated the
|
||
its build process using <code>bash</code>, <code>gmake</code>, <code>gcc</code>, <code>clang</code>, under a
|
||
<a href="https://pubs.opengroup.org/onlinepubs/9799919799/">SUS environment</a>.</p>
|
||
<p>Note references to <code>gmake</code> can be any GNU Make compatible tool.</p>
|
||
<p>See <a href="rules.html#rule-17-building">Rule 17 Building</a>.</p>
|
||
<h2 id="rule-10-privileges">Rule 10 Privileges</h2>
|
||
<p>Programs that require special privileges (setuid(2), setgid(2),
|
||
super-user, special owner, special group, etc.) are <strong>HIGHLY DISCOURAGED</strong>.
|
||
We do <strong>NOT</strong> guarantee these functions will behave as you expect on our
|
||
test platforms. If your program needs special permissions you <strong>MUST</strong>
|
||
document this fact and explain why it is needed in your submission’s
|
||
<code>remarks.md</code> file.</p>
|
||
<p>Furthermore, if you need a supplementary program that you include to
|
||
have these permissions, you will also have to explain this, because these
|
||
bits are <strong>NOT</strong> allowed in submissions and those bits will <strong>NOT</strong> be copied by
|
||
<code>mkiocccentry(1)</code>.</p>
|
||
<p>See <a href="rules.html#rule-4-files">Rule 4 Files</a>,
|
||
and
|
||
<a href="rules.html#rule-5-purity">Rule 5 Purity</a>.</p>
|
||
<h2 id="rule-11-abuse">Rule 11 Abuse</h2>
|
||
<p>Legal abuse of the rules is somewhat encouraged, but comes with risks.
|
||
A submission that, in the opinion of the Judges, violates the rules <strong>WILL
|
||
BE DISQUALIFIED</strong>. Submissions that plan to abuse the rules <strong>MUST</strong> justify
|
||
why their rule abuse is legal (or interesting) in the <code>remarks.md</code> file.</p>
|
||
<p>Submission packaging abuse will <strong>NOT</strong> be tolerated and for this reason
|
||
its recommended to use <code>mkiocccentry(1)</code>. During development you can
|
||
check your <code>prog.c</code> size limits using <code>iocccsize(1)</code>, e.g., <code>iocccsize -v1 prog.c</code>.
|
||
Overriding problems detected by any of the IOCCC tools
|
||
risks that the submission will be rejected.</p>
|
||
<p>If you do submit a rule abusing or violating submission, then consider
|
||
also submitting an alternate version in a different submission server
|
||
slot that does <strong>NOT</strong> violate the rules in case your rule abuse excuse
|
||
is rejected.</p>
|
||
<p><strong>IMPORTANT</strong>: If you do submit such an alternate non-rule abusing
|
||
version, please indicate that in your <code>remarks.md</code> file of your non-rule
|
||
abusing version so that the Judges don’t think you uploaded a duplicate
|
||
into a wrong slot by mistake.</p>
|
||
<h2 id="rule-12-utf-8">Rule 12 UTF-8</h2>
|
||
<p>Use of UTF-8 is supported by <code>C89</code> standard and its updates and so too by the IOCCC.</p>
|
||
<h2 id="rule-13-newlines">Rule 13 Newlines</h2>
|
||
<p>Any C source that fails to compile because lines contain carriage-returns
|
||
(CTRL+M, <code>\r</code>) in particular as part of DOS/Windows style newlines might
|
||
be rejected. Please do <strong>NOT</strong> put trailing CTRL+M in <code>prog.c</code>, <code>Makefile</code>,
|
||
or <code>remarks.md</code> files, but instead end lines with Unix newline (line-feed,
|
||
CTRL+J, <code>\n</code>).</p>
|
||
<p>You are permitted, in order to try and squeeze your <code>prog.c</code> under a
|
||
<a href="rules.html#rule-2a-gross-size">Rule 2a Gross Size</a> and/or
|
||
<a href="rules.html#rule-2b-net-size">Rule 2b Next Size</a>
|
||
limits, to <strong>NOT</strong> end source with a newline. If you
|
||
need to do this, please document that in your <code>remarks.md</code> file and if
|
||
your compiler complains about this, document this too and update your
|
||
<code>Makefile</code> to account for this.</p>
|
||
<h2 id="rule-14-resubmit">Rule 14 Resubmit</h2>
|
||
<p>Submissions that are substantially similar to previous winning IOCCC
|
||
entries are discouraged.</p>
|
||
<p>You are allowed to resubmit to a later contest, a submission that didn’t
|
||
win the IOCCC. If you do so, then you would be well advised to try and
|
||
enhance and improve your submission. If you do resubmit something that
|
||
didn’t previously win, then you are encouraged to mention this in your
|
||
<code>remarks.md</code> file as this sometimes helps.</p>
|
||
<h2 id="rule-15-building">Rule 15 Building</h2>
|
||
<p>The <code>Makefile</code> <strong>MUST</strong> adhere to GNU Make file syntax. Its recommended
|
||
that you copy and rename the <code>Makefile.example</code> as template. The primary
|
||
target of the <code>Makefile</code> <strong>MUST</strong> be <code>prog</code> and the source file is <code>prog.c</code>.
|
||
The C compiler and preprocessor <strong>MUST</strong> be invoked using <code>${CC}</code> and <code>${CPP}</code>
|
||
macros respectively.</p>
|
||
<p>The <code>clobber</code> target should clean and restore the submission directory
|
||
tree to its original state, such as removing temporary files or any
|
||
modified data files. Don’t assume that <code>git</code> tool chain is installed,
|
||
i.e., do <strong>NOT</strong> expect <code>git clean -f</code> to work.</p>
|
||
<p>The <code>Makefile</code> <strong>MUST</strong> use a syntax that is compatible with
|
||
<code>bash(1)</code> and GNU <code>make(1)</code>. You are encouraged to use <code>SHELL= bash</code> in your <code>Makefile</code>; please add a space between the <code>=</code> and
|
||
the value such as:</p>
|
||
<p>SHELL= bash</p>
|
||
<p>Assume that commands commonly found in <a href="https://en.wikipedia.org/wiki/Single_UNIX_Specification">Single UNIX
|
||
Specification</a>
|
||
environments and systems are available in the search
|
||
<code>$PATH</code>. Avoid command options that aren’t part of
|
||
<a href="https://en.wikipedia.org/wiki/Single_UNIX_Specification">SUS</a>, such as
|
||
GNU long name options <code>--example</code> or extensions like <code>grep -P</code>.</p>
|
||
<p>Do <strong>NOT</strong> assume that <code>.</code> (current directory) is in the <code>$PATH</code> environment variable.</p>
|
||
<p>See <a href="rules.html#rule-4-files">Rule 4 Files</a>.</p>
|
||
<h2 id="rule-16-anonymous">Rule 16 Anonymous</h2>
|
||
<p>Your source code, data files, remarks, and program output <strong>MUST NOT</strong>
|
||
identify the author(s) of your code (unless you are <strong>Peter Honeyman</strong>
|
||
or pretending to be <strong>Peter Honeyman</strong>). In order to be impartial the
|
||
<a href="https://www.ioccc.org/judges.html">Judges</a> do <strong>NOT</strong> know who is submitting
|
||
entries to the IOCCC until final selection is made. Even if you are
|
||
a past winner, you <strong>MUST NOT</strong> reveal your identity deliberately or by
|
||
accident anywhere in your submission. <strong><em>Failure to comply may result
|
||
in the submission being disqualified.</em></strong></p>
|
||
<h2 id="rule-17-packaging">Rule 17 Packaging</h2>
|
||
<p>The files, directories, and paths <strong>MUST</strong> conform to the limits imposed by
|
||
<code>mkiocccentry(1)</code>, including but <strong>NOT</strong> limited, to their names, count, path
|
||
length, directory tree depth, and permissions.</p>
|
||
<p>The submission tree may have at most <strong>13</strong> directories and maximum
|
||
directory depths of <strong>4</strong>. The maximum number of files, excluding
|
||
<code>prog.c</code>, <code>remarks.md</code>, <code>Makefile</code>, <code>prog.alt.c</code>, <code>try.sh</code>, <code>try.alt.sh</code>,
|
||
<code>.info.json</code> and <code>.auth.json</code> is <strong>31</strong>. And the maximum file-path
|
||
component is <strong>38</strong> and maximum path length is <strong>60</strong>.</p>
|
||
<p>The submission <strong>MUST</strong> be a <code>.txz</code> compressed tarball as constructed by
|
||
<code>mkiocccentry(1)</code>, which <strong>MUST</strong> be within <strong>[1..3999971]</strong> bytes in size.
|
||
The sum of all file lengths, after unpacking from the tarball, <strong>MUST</strong> be
|
||
less than <code>27651*1024</code> bytes.</p>
|
||
<p>The tarball file <strong>MUST</strong> pass all <code>txzchk(1)</code> checks and the tarball
|
||
filename <strong>MUST</strong> pass all <code>fnamchk(1)</code> checks. You may <strong>NOT</strong> submit a tarball
|
||
created by the <code>-d</code> or <code>-s</code> seed options of <code>mkiocccentry(1)</code>.</p>
|
||
<p>The unpacked submission directory <strong>MUST</strong> pass the checks performed by the
|
||
current version of <code>chksubmit(1)</code>.</p>
|
||
<p>The <code>prog.c</code> file <strong>MUST</strong> pass the <a href="rules.html#rule-2-size">Rule 2 Size</a>
|
||
size checks performed by <code>iocccsize(1)</code>. The <code>Makefile</code> and <code>remarks.md</code> files cannot
|
||
be empty. The <code>.auth.json</code> and <code>.info.json</code> files <strong>MUST</strong> be compatible with what
|
||
<code>mkiocccentry(1)</code> generates.</p>
|
||
<p>Submissions that package using older versions of the mkiocccentry
|
||
toolkit to are <strong>HIGHLY LIKELY</strong> to be <strong>REJECTED</strong>! Be sure
|
||
that you are using the latest tools from the
|
||
<a href="https://github.com/ioccc-src/mkiocccentry">mkiocccentry toolkit</a>
|
||
GitHub repo.</p>
|
||
<p>In summary: it is best to use <code>mkioccentry(1)</code> to package your submission,
|
||
rather than roll-it-by-hand.</p>
|
||
<p>See <a href="rules.html#rule-4-files">Rule 4 Files</a>.</p>
|
||
<h2 id="rule-18-license">Rule 18 License</h2>
|
||
<p>The entirety of your submission <strong>MUST</strong> be submitted under the following license:</p>
|
||
<p><a href="https://creativecommons.org/licenses/by-sa/4.0/">CC BY-SA 4.0 DEED Attribution-ShareAlike 4.0 International</a></p>
|
||
<p>See <a href="rules.html#rule-7-original-work">Rule 7 Original Work</a>.</p>
|
||
<h2 id="rule-19-prime">Rule 19 Prime</h2>
|
||
<p>This 19th rule, while prime, is reserved for future abuse. :-)
|
||
Additional rules, both humorous and otherwise, may be added
|
||
below this rule in future contests.</p>
|
||
<p>See <a href="rules.html#rule-6-free">Rule 6 Free</a>.</p>
|
||
<h2 id="further-reading">Further Reading</h2>
|
||
<p>Please read the <a href="guidelines.html">Guidelines</a> next for further
|
||
commentary on The Rules.</p>
|
||
<p>See also the <a href="../faq.html">FAQ</a>.</p>
|
||
<p>Consider joining our Discord
|
||
server for discussions about The Rules, questions for the Judges, and
|
||
<code>C</code> in general.</p>
|
||
<p>Leonid A. Broukhis
|
||
chongo (Landon Curt Noll) /\cc/\
|
||
<!-- AFTER: last line of markdown file: next/rules.md --></p>
|
||
|
||
<!-- END: this line ends content for HTML phase 21 by: bin/pandoc-wrapper.sh via bin/md2html.sh -->
|
||
<!-- START: this line starts content from: inc/after-content.default.html -->
|
||
|
||
</div>
|
||
|
||
<!-- END: this line ends content from: inc/after-content.default.html -->
|
||
<!-- START: this line starts content from: inc/footer.default.html -->
|
||
|
||
<!--
|
||
|
||
Copyright © 1984-2025 by Landon Curt Noll. All Rights Reserved.
|
||
|
||
You are free to share and adapt this file under the terms of this license:
|
||
|
||
Creative Commons Attribution-ShareAlike 4.0 International (CC BY-SA 4.0)
|
||
|
||
For more information, see:
|
||
|
||
https://creativecommons.org/licenses/by-sa/4.0/
|
||
|
||
-->
|
||
|
||
<div class="footer">
|
||
|
||
<div id="copyright"><h3>Copyright © 1984-2025 by Landon Curt Noll:
|
||
<a href="https://creativecommons.org/faq/#what-does-some-rights-reserved-mean"
|
||
target="_blank"
|
||
rel="license noopener noreferrer">Some Rights Reserved</a></h3>
|
||
<p>
|
||
This work is <b>licensed by Landon Curt Noll</b> under
|
||
<b><a href="https://creativecommons.org/licenses/by-sa/4.0/?ref=chooser-v1"
|
||
target="_blank"
|
||
rel="license noopener noreferrer"
|
||
style="display:inline-block;">CC BY-SA 4.0</a></b>.
|
||
<img style="height:22px!important;margin-left:3px;vertical-align:text-bottom;"
|
||
src="../png/cc.png"
|
||
alt="cc inside circle symbol">
|
||
<img style="height:22px!important;margin-left:3px;vertical-align:text-bottom;"
|
||
src="../png/by.png"
|
||
alt="person inside circle symbol">
|
||
<img style="height:22px!important;margin-left:3px;vertical-align:text-bottom;"
|
||
src="../png/sa.png"
|
||
alt="arrow looping back on itself inside circle symbol"><br>
|
||
You should <b>carefully review</b> the
|
||
<b><a href="https://creativecommons.org/licenses/by-sa/4.0/legalcode.en"
|
||
target="_blank"
|
||
rel="license noopener noreferrer">CC BY-SA 4.0 LEGAL CODE</a></b>
|
||
before using the licensed material.<br>
|
||
You may wish to review the
|
||
<b><a href="../license.html"
|
||
target="_blank"
|
||
rel="license noopener noreferrer">highlights of some of the key features and terms</a></b>
|
||
of <b>CC BY-SA 4.0</b>.<br>
|
||
</p>
|
||
</div>
|
||
|
||
<div id="coda"><h3>Coda</h3>
|
||
<p>
|
||
<a href="https://validator.w3.org/nu/?doc=https%3A%2F%2Fwww.ioccc.org%2Fnext%2Frules.html" rel="nofollow">Nu HTML check this web page</a><br>
|
||
<a href="#top">Jump to top</a> <a href="#content">Jump to Content</a>
|
||
</p>
|
||
</div>
|
||
|
||
</div>
|
||
|
||
<!-- END: this line ends content from: inc/footer.default.html -->
|
||
<!-- START: this line starts content from: inc/bottom.default.html -->
|
||
|
||
</body>
|
||
</html>
|
||
|
||
<!-- END: this line ends content from: inc/bottom.default.html -->
|