26 #ifndef INCLUDE_OLA_STRINGS_UTILS_H_ 27 #define INCLUDE_OLA_STRINGS_UTILS_H_ 53 template <
size_t size>
54 inline void StrNCopy(
char (&output)[size],
const char* input) {
55 strncpy(output, input, size);
60 #endif // INCLUDE_OLA_STRINGS_UTILS_H_ void StrNCopy(char(&output)[size], const char *input)
A safe version of strncpy that null-terminates the output string.
Definition: Utils.h:54
void CopyToFixedLengthBuffer(const std::string &input, char *buffer, unsigned int size)
Copy a string to a fixed length buffer without NULL terminating.
Definition: Utils.cpp:31
The namespace containing all OLA symbols.
Definition: Credentials.cpp:44