mirror of
https://github.com/esphome/esphome.git
synced 2026-09-16 17:48:40 +00:00
Document str param as non-null in buf_append_str
This commit is contained in:
@@ -947,7 +947,7 @@ __attribute__((format(printf, 4, 5))) inline size_t buf_append_printf(char *buf,
|
||||
/// @param buf Output buffer
|
||||
/// @param size Total buffer size
|
||||
/// @param pos Current position in buffer
|
||||
/// @param str String to append
|
||||
/// @param str String to append (must not be null)
|
||||
/// @return New position after appending (capped at size on overflow)
|
||||
inline size_t buf_append_str(char *buf, size_t size, size_t pos, const char *str) {
|
||||
if (pos >= size) {
|
||||
|
||||
Reference in New Issue
Block a user