patch_seq_read_line

Function patch_seq_read_line 

Source
#[unsafe(no_mangle)]
pub unsafe extern "C" fn patch_seq_read_line(stack: Stack) -> Stack
Expand description

Read a line from stdin

Returns the line including trailing newline. Returns empty string “” at EOF. Use string-chomp to remove trailing newlines if needed.

§Line Ending Normalization

Line endings are normalized to \n regardless of platform. Windows-style \r\n endings are converted to \n. This ensures consistent behavior across different operating systems.

Stack effect: ( – str )

§Safety

Always safe to call