Copies the contents of a wordwrapped text widget into a text bufferint sm_ww_read(int field_number, char *buffer, int nbytes, int offset);int sm_n_ww_read(char *field_name, char *buffer, int nbytes, int offset);
- Specifies the field whose contents you want to read. Word wrapped text is allowed only in multiline text widgets whose
word_wrapproperty is set to
- A pointer to the buffer into which the field's contents are to be read. To determine the size required by this buffer, call sm_ww_length to get the length of the word wrapped text and add 1.
- The size of
- The offset into the word wrap field at which to start reading. Supply a value of 0 to start reading from the beginning of the field.
sm_ww_readcopies word wrapped text from a multiline text widget into
buffer, starting at offset. A null terminator is supplied in buffer after the copied data. Use
sm_ww_lengthto determine the size required for
bufferand add 1.