getbits.c
changeset 141 0b5befeb361e
parent 140 05d42a3737a4
equal deleted inserted replaced
140:05d42a3737a4 141:0b5befeb361e
    27 }
    27 }
    28 
    28 
    29 int main (void)
    29 int main (void)
    30 {
    30 {
    31     unsigned int i;
    31     unsigned int i;
    32     char *s = strdup (getbits (255));
    32     char *s = strdup (getbits (0));
    33 
    33 
    34     for (i = 240; i < 255; i++)
    34     for (i = 240; i < 255; i++)
    35         printf ("%s %s %s %s (%d)\n", s, s, s, getbits (i), i);
    35         printf ("%s %s %s %s (%d)\n", s, s, s, getbits (i), i);
    36     free (s);
    36     free (s);
    37 
    37