EnzoFerber
|
codepad
|
|
EnzoFerber
|
Saved pastes by EnzoFerber:
#include <stdio.h>
#include <string.h>
#include <unistd.h>
char *buildnum ( int number, int n, char pad )
|
view (22 lines, 2 lines of output) |
void makebin(int d){
char str[9];
register int i;
for ( i = 0; i < 8; i++) str[i] = (d & 0x80 >> i) ? '1' : '0';
str[8] = 0x0;
|
view (9 lines, 1 line of output) |
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
void swap ( int *a, int *b )
|
view (20 lines, 2 lines of output) |