Implementation of the uint32_to_binary() function, that converts a 32-bit unsigned integer to a binary string. Need this since C does not normally provide a printf() converter to binary. More...
Go to the source code of this file.
Functions | |
void | uint32_to_binary (uint32_t number, char *buffer, size_t bufferSize) |
Function to convert a 32-bit unsigned integer into a string representation containing all 32 bits. | |
Implementation of the uint32_to_binary() function, that converts a 32-bit unsigned integer to a binary string. Need this since C does not normally provide a printf() converter to binary.
Definition in file uint32_to_binary.c.
void uint32_to_binary | ( | uint32_t | number, |
char * | buffer, | ||
size_t | bufferSize | ||
) |
Function to convert a 32-bit unsigned integer into a string representation containing all 32 bits.
Need this since C does not normally provide a printf() converter to binary.
number | The number to convert to a string representation in binary. |
buffer | A buffer to store the string representation. |
bufferSize | The size of the buffer. Should be at least 33 characters. |
Definition at line 16 of file uint32_to_binary.c.
Referenced by ObserverForBinary_NumberChanged().