gettxtbuf
gettxtbuf |
Purpose
Get a reference to the character buffer of a text object.
Synopsis
char *gettxtbuf(XPRMctx ctx, void *sysctx, void *t);
Arguments
ctx
|
Mosel's execution context
|
sysctx
|
Context of
mmsystem
|
t
|
Reference to a text object
|
Return value
A reference to the character buffer.
Further information
1. The buffer returned is terminated by the character 0 (like a C string) and can be modified as long as the size is not changed. If the length of the buffer has to be altered, use the function
txtresize.
2. Since the memory management of the module may move text buffers when allocating memory, the pointer returned by this function is only valid until the next memory allocation.
Related topics
Module