aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--allocing.c1
-rw-r--r--beep.c1
-rw-r--r--bfparse.c3
-rw-r--r--caesar.c1
-rw-r--r--callocing.c1
-rw-r--r--clone.c2
-rw-r--r--getline-test.c1
-rw-r--r--hello-world.c2
-rw-r--r--isOdd.c1
-rw-r--r--isOddBetter.c4
-rw-r--r--pointers.c1
-rw-r--r--printparse.c2
-rw-r--r--randomcase.c2
-rw-r--r--rpout.c13
-rw-r--r--sizeofsize_t.c1
-rw-r--r--sockets.c1
16 files changed, 24 insertions, 13 deletions
diff --git a/allocing.c b/allocing.c
index af19dab..af038d0 100644
--- a/allocing.c
+++ b/allocing.c
@@ -1,3 +1,4 @@
+// Learning to malloc.
#include<stdio.h>
#include<stdlib.h>
diff --git a/beep.c b/beep.c
index d108355..74c83d3 100644
--- a/beep.c
+++ b/beep.c
@@ -1,3 +1,4 @@
+// What is there to say? This beeps a bunch.
#include <stdio.h>
main () {
diff --git a/bfparse.c b/bfparse.c
index 2ea57b5..f412c71 100644
--- a/bfparse.c
+++ b/bfparse.c
@@ -1,3 +1,6 @@
+// This is a brainfuck to C parser. It outputs files that can be directly compiled by a
+// C compiler.
+
// WARNING: THIS PROGRAM PRODUCES CODE THAT ALLOWS UNRESTRICTED MEMORY ACCESS.
// USE AT YOUR OWN RISK!!!!!!!!!!!!
// This program takes input from stdin and outputs on stdout and stderr (for errors)
diff --git a/caesar.c b/caesar.c
index 7cbbeaa..5650577 100644
--- a/caesar.c
+++ b/caesar.c
@@ -1,3 +1,4 @@
+// This is the beginning of a caesar cipher program. Never got anywhere with it though.
#include<stdio.h>
int main ( int argc, char *argv[] ) {
diff --git a/callocing.c b/callocing.c
index 404b1af..28f9c12 100644
--- a/callocing.c
+++ b/callocing.c
@@ -1,3 +1,4 @@
+// Deja-vu?
#include<stdio.h>
#include<stdlib.h>
diff --git a/clone.c b/clone.c
index d5c2806..f8dc737 100644
--- a/clone.c
+++ b/clone.c
@@ -1,3 +1,5 @@
+// A program which was meant to clone itself, Proved to be a lot more difficult than it
+// at first seemed. - Clearly unfinished.
#include<stdio.h>
int main ( int argc, char *argv[] ) {
diff --git a/getline-test.c b/getline-test.c
index 7eb8457..54d1fb3 100644
--- a/getline-test.c
+++ b/getline-test.c
@@ -1,3 +1,4 @@
+// Your guess is as good as mine. Possibly something to do with GNU Getline though...
#include<stdio.h>
#include<stdlib.h>
diff --git a/hello-world.c b/hello-world.c
index a3a0138..da7675c 100644
--- a/hello-world.c
+++ b/hello-world.c
@@ -1,3 +1,5 @@
+// I was originally ashamed of putting this here, But this is a "c-stuff" folder after all.
+// Don't always expect advanced stuff.
#include <stdio.h>
int main() {
diff --git a/isOdd.c b/isOdd.c
index c48c92c..a36836c 100644
--- a/isOdd.c
+++ b/isOdd.c
@@ -1,3 +1,4 @@
+// Refer to isOddBetter.c for info.
#include<stdio.h>
_Bool isOdd( int );
diff --git a/isOddBetter.c b/isOddBetter.c
index 7788b4a..592bbee 100644
--- a/isOddBetter.c
+++ b/isOddBetter.c
@@ -1,3 +1,7 @@
+// Trying to see the differences between assembly created using different odd checks.
+// This taught me that the compiler is less stupid than I thought it was. The final test
+// is ommited from this directory because it involved two cluttery small files. But it
+// proved that the compiler does not automatically do odd checks the faster way.
#include<stdio.h>
_Bool isOdd( int );
diff --git a/pointers.c b/pointers.c
index cfb61f1..236bcfe 100644
--- a/pointers.c
+++ b/pointers.c
@@ -1,3 +1,4 @@
+// Really dodgy memory code... *bows head in shame*
#include <stdio.h>
int main ()
diff --git a/printparse.c b/printparse.c
index 0966e61..1f5f185 100644
--- a/printparse.c
+++ b/printparse.c
@@ -1,3 +1,5 @@
+// In collaboration with clone.c this was meant to turn clone.c's code into something I
+// could paste back into clone.c.
#include<stdio.h>
int main ( int argc, char *argv[] ) {
diff --git a/randomcase.c b/randomcase.c
index c587d1a..71e8636 100644
--- a/randomcase.c
+++ b/randomcase.c
@@ -1,3 +1,5 @@
+// Randomises the cases of letters. An IRC in joke from when I found out about the C+=
+// project. (Letter equality)
#include <stdlib.h>
#include <stdio.h>
#include <time.h>
diff --git a/rpout.c b/rpout.c
deleted file mode 100644
index a07f382..0000000
--- a/rpout.c
+++ /dev/null
@@ -1,13 +0,0 @@
-#include <stdio.h>
-
-#define void rp(char output[])
-
-main () {
- rp("Test");
- rp("Ok, this is no longer a test.");
- rp("TK throws his arms around you and squeezes you");
-}
-
-rp (char output[]) {
- printf(" [RPOUT] : %s \n", output);
-}
diff --git a/sizeofsize_t.c b/sizeofsize_t.c
index 1284839..6e4b52a 100644
--- a/sizeofsize_t.c
+++ b/sizeofsize_t.c
@@ -1,3 +1,4 @@
+// Really self explanatory.
#include<stdio.h>
#include<stdlib.h>
diff --git a/sockets.c b/sockets.c
index cf1e7a7..47955b1 100644
--- a/sockets.c
+++ b/sockets.c
@@ -1,3 +1,4 @@
+// A total mess of attempts at socket programming. (Relatively successful.)
#include<stdio.h>
#include<string.h>
#include<sys/socket.h>