diff --git a/getByte b/getByte new file mode 100644 index 0000000..6288b59 --- /dev/null +++ b/getByte @@ -0,0 +1,7 @@ +int getByte (int x, int n){ + int cur = 255; + n = n << 3; + x = x >> n; + x = x & cur; + return x; +}