ste2006
Advanced Member level 4
Anyone any ideas how to pass a single bit (flag) to a function in C. I want to pass in one flag and then return another.
I know i can create a struct and access individual bits in my main program but what about functions??
Any ideas or will i have to pass a char and modify the bits with AND, OR Functions. (Was hoping to avoid this as it gets confusing to debug)
Thanks,
I know i can create a struct and access individual bits in my main program but what about functions??
Any ideas or will i have to pass a char and modify the bits with AND, OR Functions. (Was hoping to avoid this as it gets confusing to debug)
Thanks,