Helix Core is now P4. Product user interfaces will be updated soon. Learn more >>

C/C++ API Documentation | 2026.1

# StrBuf::StrBuf() (Constructor)

Construct a `StrBuf`.

Virtual? | No |
Class | `StrBuf` |
Arguments | None |

## Notes

The `StrBuf` constructor initializes the `StrBuf` to contain a zero-length null buffer.

## Example

Copy

    int main( int argc, char **argv )
    {
        StrBuf sb;   // constructor called

        cout &lt;&lt; "sb.Text() returns \"" &lt;&lt; sb.Text() &lt;&lt; "\"\n";
        cout &lt;&lt; "sb.Length() returns " &lt;&lt; sb.Length() &lt;&lt; "\n";
    }

Executing the preceding code produces the following output:

    sb.Text() returns ""
    sb.Length() returns 0

Your search for returned results