diff options
| author | Yana Blashchishina <[email protected]> | 2024-03-11 19:50:23 -0700 |
|---|---|---|
| committer | Yana Blashchishina <[email protected]> | 2024-03-11 19:50:23 -0700 |
| commit | 2a72393c7c7f683c083153b75c578b4cc65f7ff0 (patch) | |
| tree | 47e24b6016dd0383737214a819eda47fa561068c /Homework 8/MyStructures/CharArrayHelpers.hpp | |
| parent | errors (diff) | |
| download | homework-8-yanablash-2a72393c7c7f683c083153b75c578b4cc65f7ff0.tar.xz homework-8-yanablash-2a72393c7c7f683c083153b75c578b4cc65f7ff0.zip | |
promptinput undefined
Diffstat (limited to 'Homework 8/MyStructures/CharArrayHelpers.hpp')
| -rw-r--r-- | Homework 8/MyStructures/CharArrayHelpers.hpp | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/Homework 8/MyStructures/CharArrayHelpers.hpp b/Homework 8/MyStructures/CharArrayHelpers.hpp index 62ecedd..570ecc7 100644 --- a/Homework 8/MyStructures/CharArrayHelpers.hpp +++ b/Homework 8/MyStructures/CharArrayHelpers.hpp @@ -1,4 +1,13 @@ +#ifndef CHAR_ARRAY_HELPERS_HPP +#define CHAR_ARRAY_HELPERS_HPP + + +#include <cstring> #include <iostream> + + +#define MAX_CHAR 100 + inline bool OverwriteCharArray(char* dest, const char* source, size_t size = MAX_CHAR) { size_t newLength = strlen(source); @@ -15,4 +24,5 @@ inline bool OverwriteCharArray(char* dest, const char* source, size_t size = MAX return true; -}
\ No newline at end of file +} +#endif
\ No newline at end of file |