Conrad Meyer 76cb1112da sbuf(9): Add sbuf_nl_terminate() API
The API is used to gracefully terminate text line(s) with a single \n.  If
the formatted buffer was empty or already ended in \n, it is unmodified.
Otherwise, a newline character is appended to it.  The API, like other
sbuf-modifying routines, is only valid while the sbuf is not FINISHED.

Reviewed by:	rlibby
Sponsored by:	Dell EMC Isilon
Differential Revision:	https://reviews.freebsd.org/D21030
2019-08-07 19:27:14 +00:00
..
2019-02-20 09:38:19 +00:00
2018-03-27 15:20:03 +00:00
2018-02-12 17:42:28 +00:00
2018-07-03 01:55:09 +00:00
2019-07-28 20:17:40 +00:00
2017-12-13 16:13:17 +00:00
2019-03-12 04:49:47 +00:00
2019-01-01 00:25:25 +00:00
2017-12-13 16:13:17 +00:00
2019-02-04 21:28:25 +00:00
2017-12-13 16:13:17 +00:00
2017-12-13 16:13:17 +00:00
2018-03-20 15:51:05 +00:00
2019-05-22 00:21:42 +00:00
2017-12-13 16:30:39 +00:00
2017-12-13 16:30:39 +00:00
2018-03-02 22:13:29 +00:00
2019-07-30 19:55:55 +00:00
2019-06-25 19:55:42 +00:00
2019-07-15 21:48:02 +00:00
2019-06-21 00:16:30 +00:00
2019-02-20 09:38:19 +00:00
2019-07-30 15:57:31 +00:00
2018-12-11 12:01:46 +00:00
2019-08-07 19:27:14 +00:00
2019-07-29 21:53:02 +00:00
2019-01-16 05:15:57 +00:00
2019-04-09 22:15:39 +00:00
2018-07-25 00:18:21 +00:00
2018-12-05 16:43:03 +00:00
2018-01-05 22:26:23 +00:00
2018-11-21 17:18:27 +00:00
2017-12-13 16:13:17 +00:00
2019-04-13 04:46:35 +00:00
2017-11-30 20:33:45 +00:00
2019-07-24 23:04:59 +00:00
2019-06-10 05:28:03 +00:00
2018-03-27 15:20:03 +00:00
2018-08-03 01:37:00 +00:00