summaryrefslogtreecommitdiffstats
path: root/2/7.c
diff options
context:
space:
mode:
Diffstat (limited to '2/7.c')
-rw-r--r--2/7.c15
1 files changed, 0 insertions, 15 deletions
diff --git a/2/7.c b/2/7.c
index 0c2ae6f..97af143 100644
--- a/2/7.c
+++ b/2/7.c
@@ -1,21 +1,6 @@
#include <stdio.h>
/* inverts n bits of x starting at p */
-unsigned invert(unsigned x, int p, int n);
-
-int main(int argc, char * argv[]) {
- int n, p;
- unsigned x;
-
- n = 3;
- p = 5;
- x = 0xB7;
-
- printf("result: %x\n", invert(x, p, n));
-
- return 0;
-}
-
unsigned invert(unsigned x, int p, int n) {
unsigned mask, y;