PLCnext API Documentation 25.0.2.69
SecureString.hpp
1
2//
3// Copyright Phoenix Contact GmbH & Co. KG
4//
6#pragma once
8
9namespace Arp::Base::Core
10{
11
13// Former global secure string functions, just for backward compatibility, use SafeString instead
14
16ARP_EXPORT bool SecureStrIsNullOrEmpty(const char* str, size_t bufferSize);
17
19ARP_EXPORT size_t SecureStrnlen(const char* str, size_t bufferSize);
20
22ARP_EXPORT void SecureStrcpy(char* dest, size_t destBufferSize, const char* src);
23
25ARP_EXPORT void SecureStrncpy(char* dest, size_t destBufferSize, const char* src, size_t count);
26
27} // end of namespace Arp::Base::Core
28
29namespace Arp {
31using Arp::Base::Core::SecureStrIsNullOrEmpty;
33using Arp::Base::Core::SecureStrnlen;
35using Arp::Base::Core::SecureStrcpy;
37using Arp::Base::Core::SecureStrncpy;
38}
Root namespace for the PLCnext API