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>
<BODY>
<P><A HREF="/">~ Return to the rest of the site</A></P>
<SCRIPT SRC="/cookies.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.load_c_highlighting = function(){
window.load_highlighting = function(language){
var script = document.createElement('script');
script.src = "https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.0.1/languages/c.min.js";
};
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.src = "https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.0.1/languages/" + language + ".min.js";
document.body.appendChild(script);
}
</SCRIPT>
<H1>POSIX cat(1) WIP ARTICLE</H1>
@ -42,7 +40,7 @@ POSIX doesnt mandate buffering by default - specifically, <CODE>-u</CODE> <I>
<P>
This is a POSIX-compliant implementation of UNIX cat with no additional features nor buffered output in C:
</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">
#include &lt;stdio.h&gt;
#include &lt;stdlib.h&gt;