/* itob.c - convert integer to binary * * Example for CS 313 * * Daniel Scharstein * * to compile, use gcc -W -Wall -o itob itob.c */ #include #include void reverse(char *s) /* reverse string s */ { int i, j, temp; for (i=0, j=strlen(s)-1; i 0); printf("\n"); return 0; }