I've never written byte variables on my unix shell before, so I don't know if it works or not. I'd been using unsigned ints to get hex numbers as input but I was having trouble with what my input actually was. My friend told me to use byte variables instead because they have 8 bits. MY problem is I tried to declared them every way I could find and nothing worked, I tried byte* var, byte *var, Byte var, Byte* var, BYTE* var, BYTE var, even (BYTE *) var; and nothing worked. What the hell?? I just tried unsigned in front of it and no change. Am I supposed to include a special library? What's going on.
Incase this really doesn't work, my code uses fscanf to read the number. When I was reading them as unsigned ints and printing them at the same time, they didn't look anything like the hex numbers I need. I checked the file and it didn't look weird at all. I figured byte would solve my problem.