CloudBuilder C++ SDK  v3.0.0
Making social games is easy !
Classes | Functions
Helper classes for basic tasks in your code, that you may want to use.

Classes

struct  CotCHelpers::cstring
 
struct  CotCHelpers::owned_ref< T >
 
struct  CotCHelpers::autoref< T >
 

Functions

cstringCotCHelpers::csprintf (cstring &dest, const char *format,...)
 
cstring CotCHelpers::csprintf (const char *format,...)
 

Detailed Description

Function Documentation

◆ csprintf() [1/2]

cstring& CotCHelpers::csprintf ( cstring dest,
const char *  format,
  ... 
)

Sprintf to a cstring. Allows to make a safe sprintf without having to determine the buffer size in advance, at a slight performance cost.

Parameters
destdestination string (will be replaced with the new string)
formatstandard printf args
Returns
same as dest

◆ csprintf() [2/2]

cstring CotCHelpers::csprintf ( const char *  format,
  ... 
)

Easier method. Avoid using it since performance is much worse.

Parameters
formatstandard printf args
Returns
a string