From 39c0cbcc70aff47e17107826aa76cb525c83b122 Mon Sep 17 00:00:00 2001 From: Adam Carpenter Date: Tue, 9 Jul 2019 16:00:48 -0400 Subject: ch2 --- ch2/types.c | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 ch2/types.c (limited to 'ch2/types.c') 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 + +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); + + +} -- cgit v1.2.3