OW_SafeCString.cpp File Reference

#include "OW_SafeCString.hpp"
#include <cstring>
#include <new>

Include dependency graph for OW_SafeCString.cpp:

Go to the source code of this file.

Namespaces

namespace  OW_NAMESPACE
namespace  OW_NAMESPACE::SafeCString

Functions

char * strend (char *s, std::size_t n)
char * strend_checked (char *s, std::size_t n)
char * safe_strcpy (char *dst, char const *src, std::size_t n)
 OW_NAMESPACE::SafeCString::OW_DEFINE_EXCEPTION (Overflow)
char * OW_NAMESPACE::SafeCString::str_dup (char const *s)
 Like std::strdup, except that new is used to allocate memory.


Function Documentation

char* @0::safe_strcpy char *  dst,
char const *  src,
std::size_t  n
[inline, static]
 

Definition at line 33 of file OW_SafeCString.cpp.

References strend().

char* @0::strend char *  s,
std::size_t  n
[inline, static]
 

Definition at line 8 of file OW_SafeCString.cpp.

Referenced by safe_strcpy(), and strend_checked().

char* @0::strend_checked char *  s,
std::size_t  n
[static]
 

Definition at line 13 of file OW_SafeCString.cpp.

References OW_NAMESPACE::SafeCString::DEST_UNTERMINATED, OW_THROW_ERR, and strend().


Generated on Thu Feb 9 09:04:40 2006 for openwbem by  doxygen 1.4.6