Wolph
public c v1 · immutablechar * dec2bin(int number){ int i; int max = 32; char * output = malloc(max * sizeof(char) + 1); for(i=0; i<max; i++){ output[max-i-1] = (number & (1 << i)) ? '1' : '0'; } output[max] = '\0'; return output;}