trascrivi l'errore..

ps: questo è sbagliato

codice:
void dec2bin(unsigned short input, char bitstring[16])
{
int i;
for(i=0; i<16; i++, input>>=1)
bitstring[i] = '0' | input & 1);
}
questo meno

codice:
void dec2bin(unsigned short input, char bitstring[])
{
int i;
for(i=0; i<16; i++, input>=1)
bitstring[i] = '0' | input & 1);
}