Set length: Difference between revisions

From Kolmafia
Jump to navigation Jump to search
Bale (talk | contribs)
Created page with '{{ #vardefine:name|set_length}}{{ #vardefine:return_type|void}}{{ FunctionPage| name={{#var:name}}| function_category=String Handling Routines| function1={{Function| name={{#va…'
(No difference)

Revision as of 09:46, 6 May 2010

needs(code_samples);

Function Syntax

void set_length(buffer original ,int length )

  • original is the buffer to modify
  • length is the new length of the buffer

Changes the size of the buffer. If the new length is less than the current length, then the buffer is truncated, losing all characters past that length.

See Also

delete() | insert() | length()