Drukuj krótki w C

scanf("%hu", &length);
        ^
Defeated Dotterel