4 * @author Sebastien Fourey <http://www.greyc.ensicaen.fr/~seb>
7 * @brief Tools (def. of inline functions and methods)
10 * \@copyright This File is part of the Board library which is
11 * licensed under the terms of the GNU Lesser General Public Licence.
12 * See the LICENCE file for further details.
17 void secured_strncpy( char * dst, const char * src, size_t count )
19#if defined( _MSC_VER )
20 strncpy_s( dst, count, src, _TRUNCATE );
22 strncpy( dst, src, count );
23#endif // defined( _MSC_VER )
26void secured_ctime( char * str, const time_t * t, size_t count )
28#if defined( _MSC_VER )
29 ctime_s( str, count, t );
31 strncpy( str, ctime(t), count );
32#endif // defined( _MSC_VER )
37} // namespace LibBoard