Imprima curto em C

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