From 7941415ea2408a2d91cc458591d4e707ec5d4c39 Mon Sep 17 00:00:00 2001 From: EliteTK Date: Mon, 24 Feb 2014 21:49:18 +0000 Subject: Added more annotation --- allocing.c | 1 + beep.c | 1 + bfparse.c | 3 +++ caesar.c | 1 + callocing.c | 1 + clone.c | 2 ++ getline-test.c | 1 + hello-world.c | 2 ++ isOdd.c | 1 + isOddBetter.c | 4 ++++ pointers.c | 1 + printparse.c | 2 ++ randomcase.c | 2 ++ rpout.c | 13 ------------- sizeofsize_t.c | 1 + sockets.c | 1 + 16 files changed, 24 insertions(+), 13 deletions(-) delete mode 100644 rpout.c 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 #include 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 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 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 #include 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 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 #include 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 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 _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 _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 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 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 #include #include 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 - -#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 #include 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 #include #include -- cgit v1.2.3-54-g00ecf