F´ Flight Software - C/C++ Documentation
NASA-v2.0.1
A framework for building embedded system applications to NASA flight quality standards.
StringUtils.cpp
Go to the documentation of this file.
1
#include "
StringUtils.hpp
"
2
#include "string.h"
3
4
char
*
Fw::StringUtils::string_copy
(
char
* destination,
const
char
* source, U32 num) {
5
char
* returned = strncpy(destination, source, num);
6
destination[num - 1] =
'\0'
;
7
return
returned;
8
}
StringUtils.hpp
Fw::StringUtils::string_copy
char * string_copy(char *destination, const char *source, U32 num)
copy string with null-termination guaranteed
Definition:
StringUtils.cpp:4
Fw
Types
StringUtils.cpp
Generated by
1.8.17