This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Printbin in C

Hi there,
I hav ethis function call in BASCOM.

Printbin Comm_buffer(1) ; 1

Any clues how to write this in C.
Thanks

Gopal

Parents
  • Ok, thanks for the feedback. I was lost because I was trying to send a float by C. It seems printbin is a really smart function that it can send char or float by distinguishing between between them by itself. However, in C, I ended up with writing another function to send a float as 4 separate chars and send them by putchar. Seems no other choice.

    Also, another interesting point is printbin seems to read the LSB first.

Reply
  • Ok, thanks for the feedback. I was lost because I was trying to send a float by C. It seems printbin is a really smart function that it can send char or float by distinguishing between between them by itself. However, in C, I ended up with writing another function to send a float as 4 separate chars and send them by putchar. Seems no other choice.

    Also, another interesting point is printbin seems to read the LSB first.

Children