/* Desk code check. Original teaching program. Not a product license. Not compiled. */

int length_of(const char *text) {
    int count;

    if (text == 0) {
        return -1;
    }
    count = 0;
    while (text[count] != '\0') {
        count = count + 1;
    }
    return count;
}

int desk_code(const char *text) {
    if (length_of(text) == 4) {
        return 1;
    }
    return 0;
}
