aboutsummaryrefslogtreecommitdiffstats
path: root/example_comp_man.c
diff options
context:
space:
mode:
authorEliteTK <tomasz.kramkowski@gmail.com>2014-02-26 01:24:20 +0000
committerEliteTK <tomasz.kramkowski@gmail.com>2014-02-26 01:24:20 +0000
commit41523df2b162a598ed3f668d7c36b901054b122b (patch)
tree5cc3b4a6bf250961b92def41d860d2526d6ff0cb /example_comp_man.c
parentfdd18abebe52d9610d6e613fa92aa376d422e41e (diff)
downloadc-stuff-41523df2b162a598ed3f668d7c36b901054b122b.tar.gz
c-stuff-41523df2b162a598ed3f668d7c36b901054b122b.tar.xz
c-stuff-41523df2b162a598ed3f668d7c36b901054b122b.zip
stuff
Diffstat (limited to 'example_comp_man.c')
-rw-r--r--example_comp_man.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/example_comp_man.c b/example_comp_man.c
new file mode 100644
index 0000000..b6845e6
--- /dev/null
+++ b/example_comp_man.c
@@ -0,0 +1,3 @@
+#include <stdio.h>
+#include <stdlib.h>
+struct test{int number;char letter;char *string;};void printstruct(const struct test*);int main(int argc,char*argv[]){struct test cake;cake.number=5;cake.letter='a';cake.string="Magic";printstruct(&cake);return 0;}void printstruct(const struct test*testp){printf("Number: %d\nLetter: %c\nString: %s\n",testp->number,testp->letter,testp->string);return;}