hex/strings.fj

Line / byte-buffer helpers: read a whole line into a buffer and print buffers back. (By “buffers” we mean hex.pointers to those buffers.)

View source on GitHub

Macros

hex

  • hex.input_ptr_line — Reads bytes from input into the pointed buffer, until a '\n' or a 0-byte (EOF); writes the byte count into len[:w/4].

  • hex.print_ptr_text — Prints len[:w/4] bytes from the pointed buffer.

  • hex.print_ptr_line — Prints bytes from the pointed buffer, until a '\n' or a 0-byte (EOF); writes the byte count into len[:w/4].