Set length
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