{The S-lang C Library Reference}: SLsmg_write_wrapped_string

Next Previous Contents

## 18. SLsmg_write_wrapped_string

Synopsis

  Write a string to the display with wrapping

Usage

  `void SLsmg_write_wrapped_string (s, r, c, nr, nc, fill)`

  > `

  >         char *s
  >         int r, c
  >         unsigned int nr, nc
  >         int fill

  > `

Description

  `SLsmg_write_wrapped_string` writes the string `s` to the virtual display. The string will be confined to the rectangular region whose upper right corner is at row `r` and column `c`, and consists of `nr` rows and `nc` columns. The string will be wrapped at the boundaries of the box. If `fill` is non-zero, the last line to which characters have been written will get padded with spaces.

Notes

  This function does not wrap on word boundaries. However, it will wrap when a newline charater is encountered.

See Also

  `SLsmg_write_string`

Next Previous Contents