Max 5 API Reference

String Object
[Data Storage]

Max's string object is a simple wrapper for c-strings, useful when working with Max's t_dictionary, t_linklist, or t_hashtab. More...

Collaboration diagram for String Object:

Data Structures

struct  t_string
 The string object. More...

Functions

t_stringstring_new (const char *psz)
 Create a new string object.
const char * string_getptr (t_string *x)
 Create a new string object.

Detailed Description

Max's string object is a simple wrapper for c-strings, useful when working with Max's t_dictionary, t_linklist, or t_hashtab.

See also:
Dictionary

Function Documentation

const char* string_getptr ( t_string x  ) 

Create a new string object.

Parameters:
x The string object instance.
Returns:
A pointer to the internally maintained C-string.
t_string* string_new ( const char *  psz  ) 

Create a new string object.

Parameters:
psz Pointer to a C-string that will be copied to memory internal to this string object instance.
Returns:
The new string object instance pointer.

Copyright © 2008, Cycling '74