/* * Copyright(C) 1999-2020, 2022 National Technology & Engineering Solutions * of Sandia, LLC (NTESS). Under the terms of Contract DE-NA0003525 with * NTESS, the U.S. Government retains certain rights in this software. * * See packages/seacas/LICENSE for details */ #pragma once #include #include template void copy_string(char (&output)[size], const char *source) { // Copy the string — don’t copy too many bytes. copy_string(output, source, size); } template void copy_string(char (&output)[size], const std::string &source) { // Copy the string — don’t copy too many bytes. copy_string(output, source.c_str(), size); } inline void copy_string(char *dest, const std::string &source, size_t elements) { copy_string(dest, source.c_str(), elements); }