libzypp  13.10.6
zypp::str::SafeBuf Struct Reference

Assert free called for allocated char *. More...

#include <String.h>

Public Member Functions

 SafeBuf ()
 
 ~SafeBuf ()
 
std::string asString () const
 

Public Attributes

char * _buf
 

Detailed Description

Assert free called for allocated char *.

* ...
* SafeBuf safe;
* vasprintf( &safe._buf, format, ap );
* return safe.asString();
*

Definition at line 173 of file String.h.

Constructor & Destructor Documentation

zypp::str::SafeBuf::SafeBuf ( )
inline

Definition at line 176 of file String.h.

zypp::str::SafeBuf::~SafeBuf ( )
inline

Definition at line 177 of file String.h.

Member Function Documentation

std::string zypp::str::SafeBuf::asString ( ) const
inline

Definition at line 178 of file String.h.

Member Data Documentation

char* zypp::str::SafeBuf::_buf

Definition at line 175 of file String.h.


The documentation for this struct was generated from the following file: