2.2.3.15.5 string::Empty

Description

Make this string object an empty string (0 length) and free memory as appropriate.

Syntax

void Empty( )

Parameters

Return

Examples

EX1

void string_Empty_ex1()
{
    string str = ("This is a testing case.");
    str.Empty();
    int len = str.GetLength();
    out_int("The length of the string is ", len);//len = 0
}

Remark

See Also

string::IsEmpty

Header to Include

origin.h