#[unsafe(no_mangle)]pub unsafe extern "C" fn patch_seq_string_chomp(stack: Stack) -> StackExpand description
Remove trailing newline characters from a string
Stack effect: ( str – str )
Removes trailing \n or \r\n (handles both Unix and Windows line endings). If the string doesn’t end with a newline, returns it unchanged.
§Safety
Stack must have a String value on top