summaryrefslogblamecommitdiff
path: root/ch2/types.c
blob: 8ef4c915783806391dabd5b3432811378245a021 (plain) (tree)
























                                    
#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);


}