mirror of
https://github.com/OpenTTD/OpenTTD
synced 2026-01-27 22:24:28 +01:00
Codechange: Use std::span/std::string_view for strecpy. (#12848)
This avoids needing to manually pass the last character of the destination buffer, and allows use of standard library functions.
This commit is contained in:
@@ -17,7 +17,7 @@
|
||||
#include "core/bitmath_func.hpp"
|
||||
#include "string_type.h"
|
||||
|
||||
char *strecpy(char *dst, const char *src, const char *last) NOACCESS(3);
|
||||
void strecpy(std::span<char> dst, std::string_view src);
|
||||
|
||||
std::string FormatArrayAsHex(std::span<const uint8_t> data);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user