Cloned SEACAS for EXODUS library with extra build files for internal package management.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

28 lines
833 B

2 years ago
/*
* 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 <copy_string.h>
#include <string>
template <size_t size> void copy_string(char (&output)[size], const char *source)
{
// Copy the string — don’t copy too many bytes.
copy_string(output, source, size);
}
template <size_t size> 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);
}