summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdam Carpenter <gitlab@53hor.net>2019-07-09 16:00:48 -0400
committerAdam Carpenter <gitlab@53hor.net>2019-07-09 16:00:48 -0400
commit39c0cbcc70aff47e17107826aa76cb525c83b122 (patch)
treedf483af220a11aab49e0e3a76eea54f60efbd424
parent583fc81152e120ec5873f8057f11a894bb8b0a91 (diff)
downloadlearning-c-39c0cbcc70aff47e17107826aa76cb525c83b122.tar.xz
learning-c-39c0cbcc70aff47e17107826aa76cb525c83b122.zip
ch2
-rw-r--r--ch1/char_hist.c (renamed from char_hist.c)0
-rw-r--r--ch1/copier.c (renamed from copier.c)0
-rw-r--r--ch1/counter.c (renamed from counter.c)0
-rw-r--r--ch1/ctof.c (renamed from ctof.c)0
-rw-r--r--ch1/ftoc.c (renamed from ftoc.c)0
-rw-r--r--ch1/hello.c (renamed from hello.c)0
-rw-r--r--ch1/line_counter.c (renamed from line_counter.c)0
-rw-r--r--ch1/longest_line.c (renamed from longest_line.c)0
-rw-r--r--ch1/no_trailers.c (renamed from no_trailers.c)0
-rw-r--r--ch1/num_digits.c (renamed from num_digits.c)0
-rw-r--r--ch1/one_word.c (renamed from one_word.c)0
-rw-r--r--ch1/power.c (renamed from power.c)0
-rw-r--r--ch1/reverse.c (renamed from reverse.c)0
-rw-r--r--ch1/too_long.c (renamed from too_long.c)0
-rw-r--r--ch1/wc.c (renamed from wc.c)0
-rw-r--r--ch1/whitespace_converter.c (renamed from whitespace_converter.c)0
-rw-r--r--ch1/whitespace_counter.c (renamed from whitespace_counter.c)0
-rw-r--r--ch1/whitespace_translator.c (renamed from whitespace_translator.c)0
-rw-r--r--ch1/word_hist.c (renamed from word_hist.c)0
-rw-r--r--ch2/typesbin0 -> 16336 bytes
-rw-r--r--ch2/types.c25
-rw-r--r--nohup.out0
22 files changed, 25 insertions, 0 deletions
diff --git a/char_hist.c b/ch1/char_hist.c
index 312df76..312df76 100644
--- a/char_hist.c
+++ b/ch1/char_hist.c
diff --git a/copier.c b/ch1/copier.c
index eeade8e..eeade8e 100644
--- a/copier.c
+++ b/ch1/copier.c
diff --git a/counter.c b/ch1/counter.c
index a1b9927..a1b9927 100644
--- a/counter.c
+++ b/ch1/counter.c
diff --git a/ctof.c b/ch1/ctof.c
index b95e20a..b95e20a 100644
--- a/ctof.c
+++ b/ch1/ctof.c
diff --git a/ftoc.c b/ch1/ftoc.c
index 70b994a..70b994a 100644
--- a/ftoc.c
+++ b/ch1/ftoc.c
diff --git a/hello.c b/ch1/hello.c
index b1ad928..b1ad928 100644
--- a/hello.c
+++ b/ch1/hello.c
diff --git a/line_counter.c b/ch1/line_counter.c
index 0447aa7..0447aa7 100644
--- a/line_counter.c
+++ b/ch1/line_counter.c
diff --git a/longest_line.c b/ch1/longest_line.c
index 58f2a72..58f2a72 100644
--- a/longest_line.c
+++ b/ch1/longest_line.c
diff --git a/no_trailers.c b/ch1/no_trailers.c
index 80dbc0f..80dbc0f 100644
--- a/no_trailers.c
+++ b/ch1/no_trailers.c
diff --git a/num_digits.c b/ch1/num_digits.c
index c25fc29..c25fc29 100644
--- a/num_digits.c
+++ b/ch1/num_digits.c
diff --git a/one_word.c b/ch1/one_word.c
index 8d50542..8d50542 100644
--- a/one_word.c
+++ b/ch1/one_word.c
diff --git a/power.c b/ch1/power.c
index 8bca4fd..8bca4fd 100644
--- a/power.c
+++ b/ch1/power.c
diff --git a/reverse.c b/ch1/reverse.c
index 98edd98..98edd98 100644
--- a/reverse.c
+++ b/ch1/reverse.c
diff --git a/too_long.c b/ch1/too_long.c
index dcc6ed4..dcc6ed4 100644
--- a/too_long.c
+++ b/ch1/too_long.c
diff --git a/wc.c b/ch1/wc.c
index 4a5007d..4a5007d 100644
--- a/wc.c
+++ b/ch1/wc.c
diff --git a/whitespace_converter.c b/ch1/whitespace_converter.c
index 6fee3bd..6fee3bd 100644
--- a/whitespace_converter.c
+++ b/ch1/whitespace_converter.c
diff --git a/whitespace_counter.c b/ch1/whitespace_counter.c
index ea441e2..ea441e2 100644
--- a/whitespace_counter.c
+++ b/ch1/whitespace_counter.c
diff --git a/whitespace_translator.c b/ch1/whitespace_translator.c
index efb52b2..efb52b2 100644
--- a/whitespace_translator.c
+++ b/ch1/whitespace_translator.c
diff --git a/word_hist.c b/ch1/word_hist.c
index 965c1b9..965c1b9 100644
--- a/word_hist.c
+++ b/ch1/word_hist.c
diff --git a/ch2/types b/ch2/types
new file mode 100644
index 0000000..bc09907
--- /dev/null
+++ b/ch2/types
Binary files differ
diff --git a/ch2/types.c b/ch2/types.c
new file mode 100644
index 0000000..8ef4c91
--- /dev/null
+++ b/ch2/types.c
@@ -0,0 +1,25 @@
+#include<stdio.h>
+
+int stringlen(char s[]) {
+ int i;
+
+ i = 0;
+ while (s[i] != '\0')
+ ++i;
+ return i;
+}
+
+int main() {
+ //int count = stringlen("test");
+ //printf("%d\n", count);
+
+
+ //enum fruit {
+ // APPLE,
+ // PEAR,
+ // BANANA,
+ //};
+ //printf("%d\n", PEAR);
+
+
+}
diff --git a/nohup.out b/nohup.out
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/nohup.out