patch_seq_read_line_plus

Function patch_seq_read_line_plus 

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

Read a line from stdin with explicit EOF detection

Returns the line and a status flag:

  • ( line 1 ) on success (line includes trailing newline)
  • ( “” 0 ) at EOF

Stack effect: ( – String Int )

The + suffix indicates this returns a result pattern (value + status).

§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.

§Safety

Always safe to call