Given a function definition within a project as such:
If string pointer sees anything other than a null, would it return a boolean true within the while loop condition? And is null character equivalent to a boolean false?
void usart_str_write(const char* string)
If string is NULL, then anything can happen when you try to dereference it, so I'd make that part of the condition.
> And is null character equivalent to a boolean false?
0, '\0' and NULL are regarded as false in C.
Any other integral value, any other character and any valid pointer are regarded as true.
The reason that I'm asking the question is that I initially had *string != '\0'; as part of the condition.
That would do exactly the same thing as the code you have now - no difference in behaviour.