--- /dev/null
+/* Desc: Prints Fahrenheit-Celsius table; uses symbolic constants
+ * Usage: name=temp_convert; gcc -o "$name" "$name".c; ./"$name";
+ * Ref/Attrib: [0]: The C Programming Language, 2nd Edition, Section 1.4
+ */
+#include <stdio.h>
+
+# define LOWER 0 /* Lower limit of table. */
+# define UPPER 300 /* Upper limit of table. */
+# define STEP 20 /* Step size. */
+
+/* Print Fahrenheit–Celsius table */
+
+int main(){
+ int fahr;
+ for (fahr = LOWER; fahr <= UPPER; fahr = fahr + STEP)
+ printf("%3d %6.1f\n", fahr, (5.0/9.0)*(fahr - 32) );
+ return 0;
+};
+
+/* Author: Steven Baltakatei Sandoval
+ * License: GPLv3+
+ */
--- /dev/null
+/* Desc: Reads and prints inputted char
+ * Usage: name=get_put_char; gcc -o "$name" "$name".c; ./"$name";
+ * Ref/Attrib: [0]: The C Programming Language, 2nd Edition, Section 1.5.1
+ */
+#include <stdio.h>
+
+/* copy input to output; 1st version */
+
+int main(){
+ int c;
+
+ c = getchar();
+ while(c != EOF) {
+ putchar(c);
+ c = getchar();
+ };
+ return 0;
+};
+
+/* Author: Steven Baltakatei Sandoval
+ * License: GPLv3+
+ */
--- /dev/null
+/* Desc: Reads and prints inputted char
+ * Usage: name=get_put_char2; gcc -o "$name" "$name".c; ./"$name";
+ * Ref/Attrib: [0]: The C Programming Language, 2nd Edition, Section 1.5.1
+ */
+#include <stdio.h>
+
+/* copy input to output; 2nd version */
+
+int main(){
+ int c;
+
+ while((c = getchar()) != EOF)
+ putchar(c);
+ return 0;
+};
+
+/* Author: Steven Baltakatei Sandoval
+ * License: GPLv3+
+ */
--- /dev/null
+/* Desc: Test behavior of "getchar() not equal to EOF"
+ * Usage: name=getchar_eof_test; gcc -o "$name" "$name".c; ./"$name";
+ * Ref/Attrib: [0]: The C Programming Language, 2nd Edition, Section 1.5.1
+ */
+#include <stdio.h>
+
+/* Reads a single character. Will display "output:0" if first
+ * character provided is EOF (e.g. "alt+D"). Otherwise, will display
+ * "output:1".
+ */
+
+int main(){
+ int output;
+ output = (getchar() != EOF);
+ printf("output:%d", output);
+ return 0;
+};
+
+/* Author: Steven Baltakatei Sandoval
+ * License: GPLv3+
+ */
variable).
</enumerate>
- <item*|<cpp|putchar()><label|func putchar>>Write one character at a time.
+ <item*|<cpp|putchar(int arg1)><label|func putchar>>Write one integer
+ character (e.g. <cpp|arg1>) at a time.
<item*|<cpp|printf()>>Used for printing formatted text to console.
</description>
--- /dev/null
+<TeXmacs|2.1.2>
+
+<style|source>
+
+<\body>
+ <\active*>
+ <\src-title>
+ <src-package|pubkeys-book-style|0.0.1>
+
+ <src-purpose|Style package for Notable Public Keys TeXmacs source
+ files.>
+ </src-title>
+ </active*>
+
+ <use-package|number-long-article|libertine-font>
+
+ <\active*>
+ <\src-comment>
+ Style parameters.
+ </src-comment>
+ </active*>
+
+ <assign|info-flag|detailed>
+
+ <assign|page-height|auto>
+
+ <assign|page-width|auto>
+
+ <assign|page-type|a4>
+
+ <\active*>
+ <\src-comment>
+ Macro definitions.
+ </src-comment>
+ </active*>
+
+ \;
+
+ <assign|bktable3|<macro|body|<tformat|<twith|table-min-rows|2>|<twith|table-min-cols|2>|<cwith|1|1|1|-1|cell-tborder|2ln>|<cwith|1|1|1|-1|cell-bborder|1ln>|<cwith|-1|-1|1|-1|cell-bborder|2ln>|<cwith|1|-1|1|-1|cell-bsep|0.25fn>|<cwith|1|-1|1|-1|cell-tsep|0.25fn>|<cwith|1|-1|1|-1|cell-lsep|0.50fn>|<cwith|1|-1|1|-1|cell-rsep|0.50fn>|<arg|body>>>>
+
+ <assign|def|<macro|body|<hgroup|<em|<inactive|<reference|<arg|body>>>>>>>
+
+ <assign|hlinkv-delme|<macro|body|<hlink|<verbatim|<arg|body>>
+ |<arg|body>>>>
+
+ <assign|hlinkv|<macro|body|<hlink|<verbatim|<condensed|<arg|body>>>
+ |<arg|body>>>>
+
+ <assign|long-id-spc|<macro|body|<with|hmagnified-factor|0.75|color|brown|<hgroup|<hmagnified|<verbatim|<arg|body>>>>>>>
+
+ <assign|long-id|<macro|body|<with|color|brown|<hgroup|<verbatim|0x<arg|body>>>>>>
+
+ <assign|verbatim-8pt|<\macro|body>
+ <\with|font-base-size|8>
+ <\verbatim>
+ <arg|body>
+ </verbatim>
+ </with>
+ </macro>>
+
+ <assign|verb-sm|<macro|body|<with|font-base-size|8|<verbatim|<arg|body>>>>>
+
+ <assign|version|<macro|body|<em|v<arg|body>>>>
+
+ <assign|vpk|<\macro|body>
+ <\vgroup>
+ <\verbatim-8pt>
+ <\with|font-base-size|8>
+ <arg|body>
+ </with>
+ </verbatim-8pt>
+ </vgroup>
+
+ \;
+ </macro>>
+
+ <\active*>
+ <\src-comment>
+ Macro definitions: Monospace code blocks
+ </src-comment>
+ </active*>
+
+ <assign|code-wide|<\macro|body>
+ <\wide-block>
+ <tformat|<cwith|1|1|1|1|cell-background|pastel
+ cyan>|<table|<row|<\cell>
+ <\shell-code>
+ <arg|body>
+ </shell-code>
+ </cell>>>>
+ </wide-block>
+ </macro>>
+
+ <assign|code-wide-sm|<\macro|body>
+ <with|font|Linux Libertine|font-base-size|8|<\code-wide>
+ <arg|body>
+ </code-wide>>
+ </macro>>
+
+ <assign|code-inline|<macro|body|<tabular|<tformat|<cwith|1|1|1|1|cell-background|pastel
+ cyan>|<cwith|1|1|1|1|cell-tborder|1ln>|<cwith|1|1|1|1|cell-bborder|1ln>|<cwith|1|1|1|1|cell-lborder|1ln>|<cwith|1|1|1|1|cell-rborder|1ln>|<table|<row|<cell|<verbatim|<arg|body>>>>>>>>>
+</body>
+
+<\initial>
+ <\collection>
+ <associate|preamble|true>
+ </collection>
+</initial>
\ No newline at end of file