| name | language | licence |
|---|---|---|
| Printing Binary Representation of String | C | Other |
| kqueues | C | Other |
| raw fsevents | C | Other |
language: C
licence: Other
Printing Binary Representation of String
options: view full snippet • send to code collector
// http://forums.devshed.com/showpost.php?p=2150495&postcount=10
#include <stdio.h>
void binaryOut (char c)
{
unsigned char mask = 0x80; // 10000000 binary
while (mask)
{
if (c & mask) putchar ('1');
else putchar ('0');
mask >>= 1;
}
}
int main (int argc, char* argv [])



library
objective-c (22)