diff options
author | EliteTK <tomasz.kramkowski@gmail.com> | 2014-02-24 21:49:18 +0000 |
---|---|---|
committer | EliteTK <tomasz.kramkowski@gmail.com> | 2014-02-24 21:49:18 +0000 |
commit | 7941415ea2408a2d91cc458591d4e707ec5d4c39 (patch) | |
tree | e5455d1a12ab1bffec64a0e67648362133276771 | |
parent | 01f1c8246b7b96b659519f824966c8793053fc75 (diff) | |
download | c-stuff-7941415ea2408a2d91cc458591d4e707ec5d4c39.tar.gz c-stuff-7941415ea2408a2d91cc458591d4e707ec5d4c39.tar.xz c-stuff-7941415ea2408a2d91cc458591d4e707ec5d4c39.zip |
Added more annotation
-rw-r--r-- | allocing.c | 1 | ||||
-rw-r--r-- | beep.c | 1 | ||||
-rw-r--r-- | bfparse.c | 3 | ||||
-rw-r--r-- | caesar.c | 1 | ||||
-rw-r--r-- | callocing.c | 1 | ||||
-rw-r--r-- | clone.c | 2 | ||||
-rw-r--r-- | getline-test.c | 1 | ||||
-rw-r--r-- | hello-world.c | 2 | ||||
-rw-r--r-- | isOdd.c | 1 | ||||
-rw-r--r-- | isOddBetter.c | 4 | ||||
-rw-r--r-- | pointers.c | 1 | ||||
-rw-r--r-- | printparse.c | 2 | ||||
-rw-r--r-- | randomcase.c | 2 | ||||
-rw-r--r-- | rpout.c | 13 | ||||
-rw-r--r-- | sizeofsize_t.c | 1 | ||||
-rw-r--r-- | sockets.c | 1 |
16 files changed, 24 insertions, 13 deletions
@@ -1,3 +1,4 @@ +// Learning to malloc. #include<stdio.h> #include<stdlib.h> @@ -1,3 +1,4 @@ +// What is there to say? This beeps a bunch. #include <stdio.h> main () { @@ -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) @@ -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> @@ -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() { @@ -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 ); @@ -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> @@ -1,3 +1,4 @@ +// A total mess of attempts at socket programming. (Relatively successful.) #include<stdio.h> #include<string.h> #include<sys/socket.h> |