print: fix function definition

This commit is contained in:
King Kévin 2020-01-08 20:27:42 +01:00
parent 99bf7157b2
commit ac1485004e
2 changed files with 2 additions and 2 deletions

View File

@ -30,7 +30,7 @@
uint8_t print_error;
size_t puts(char* str)
size_t puts(const char* str)
{
size_t printed = 0; // number of characters printed
while (*str) { // go until end of string (\0 string termination character)

View File

@ -54,7 +54,7 @@ size_t putc(char c);
* @note uses putc to output characters
* @note does not require print functions (and is faster/simpler)
*/
size_t puts(char* str);
size_t puts(const char* str);
/** print format string on user output
* @param[in] format format string to be printed
* @param[in] ... arguments referenced by format string to be printed