1
0
This commit is contained in:
Deven Blake 2021-06-20 08:14:10 -04:00
parent f17208b977
commit 15c8188aaa

View File

@ -11,18 +11,16 @@
</HEAD> </HEAD>
<BODY> <BODY>
<P><A HREF="/">~ Return to the rest of the site</A></P> <P><A HREF="/">~ Return to the rest of the site</A></P>
<SCRIPT SRC="/cookies.js" TYPE="application/javascript"></SCRIPT> <SCRIPT SRC="/cookies.js" TYPE="application/javascript"></SCRIPT>
<SCRIPT SRC="/sheets.js" TYPE="application/javascript"></SCRIPT> <SCRIPT SRC="/sheets.js" TYPE="application/javascript"></SCRIPT>
<SCRIPT TYPE="application/javascript">window.onload = window.initializesheets;</SCRIPT> <SCRIPT TYPE="application/javascript">window.onload = window.initializesheets;</SCRIPT>
<SCRIPT TYPE="application/javascript"> <SCRIPT TYPE="application/javascript">
window.load_c_highlighting = function(){ window.load_highlighting = function(language){
var script = document.createElement('script'); var script = document.createElement('script');
script.src = "https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.0.1/languages/c.min.js"; script.src = "https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.0.1/languages/" + language + ".min.js";
}; document.body.appendChild(script);
window.load_shell_highlighting = function(){ }
var script = document.createElement('script');
script.src = "https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.0.1/languages/shell.min.js";
};
</SCRIPT> </SCRIPT>
<H1>POSIX cat(1) WIP ARTICLE</H1> <H1>POSIX cat(1) WIP ARTICLE</H1>
@ -42,7 +40,7 @@ POSIX doesnt mandate buffering by default - specifically, <CODE>-u</CODE> <I>
<P> <P>
This is a POSIX-compliant implementation of UNIX cat with no additional features nor buffered output in C: This is a POSIX-compliant implementation of UNIX cat with no additional features nor buffered output in C:
</P> </P>
<INPUT ONCLICK="window.load_c_highlighting();" TYPE="button" VALUE="Press this button to enable syntax highlighting within this code." /> <INPUT ONCLICK="window.load_highlighting('c');" TYPE="button" VALUE="Press this button to enable syntax highlighting within this code." />
<PRE><CODE CLASS="language-c"> <PRE><CODE CLASS="language-c">
#include &lt;stdio.h&gt; #include &lt;stdio.h&gt;
#include &lt;stdlib.h&gt; #include &lt;stdlib.h&gt;