string-handling <stdio.h> functions, like we already do it for <string.h>.
Includes a smaller patch from <kshe59 at zoho dot eu>, OK jmc@.
-.\" $OpenBSD: fgetln.3,v 1.18 2017/07/04 15:33:03 schwarze Exp $
+.\" $OpenBSD: fgetln.3,v 1.19 2017/12/01 11:18:40 schwarze Exp $
.\"
.\" Copyright (c) 1990, 1991, 1993
.\" The Regents of the University of California. All rights reserved.
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
.\" SUCH DAMAGE.
.\"
-.Dd $Mdocdate: July 4 2017 $
+.Dd $Mdocdate: December 1 2017 $
.Dt FGETLN 3
.Os
.Sh NAME
.Xr ferror 3 ,
.Xr fgetc 3 ,
.Xr fgets 3 ,
+.Xr fgetwln 3 ,
.Xr fopen 3 ,
.Xr fparseln 3 ,
.Xr getline 3
-.\" $OpenBSD: fgets.3,v 1.34 2016/08/27 16:39:42 schwarze Exp $
+.\" $OpenBSD: fgets.3,v 1.35 2017/12/01 11:18:40 schwarze Exp $
.\"
.\" Copyright (c) 1990, 1991, 1993
.\" The Regents of the University of California. All rights reserved.
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
.\" SUCH DAMAGE.
.\"
-.Dd $Mdocdate: August 27 2016 $
+.Dd $Mdocdate: December 1 2017 $
.Dt FGETS 3
.Os
.Sh NAME
.Sh SEE ALSO
.Xr feof 3 ,
.Xr ferror 3 ,
+.Xr fgetws 3 ,
.Xr getline 3
.Sh STANDARDS
The function
-.\" $OpenBSD: fputs.3,v 1.12 2016/05/26 12:53:28 millert Exp $
+.\" $OpenBSD: fputs.3,v 1.13 2017/12/01 11:18:40 schwarze Exp $
.\"
.\" Copyright (c) 1990, 1991, 1993
.\" The Regents of the University of California. All rights reserved.
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
.\" SUCH DAMAGE.
.\"
-.Dd $Mdocdate: May 26 2016 $
+.Dd $Mdocdate: December 1 2017 $
.Dt FPUTS 3
.Os
.Sh NAME
.Xr write 2 .
.Sh SEE ALSO
.Xr ferror 3 ,
+.Xr fputws 3 ,
.Xr putc 3 ,
.Xr stdio 3
.Sh STANDARDS
-.\" $OpenBSD: getc.3,v 1.14 2013/06/05 03:39:23 tedu Exp $
+.\" $OpenBSD: getc.3,v 1.15 2017/12/01 11:18:40 schwarze Exp $
.\"
.\" Copyright (c) 1990, 1991, 1993
.\" The Regents of the University of California. All rights reserved.
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
.\" SUCH DAMAGE.
.\"
-.Dd $Mdocdate: June 5 2013 $
+.Dd $Mdocdate: December 1 2017 $
.Dt GETC 3
.Os
.Sh NAME
.Xr ferror 3 ,
.Xr fopen 3 ,
.Xr fread 3 ,
+.Xr getwc 3 ,
.Xr putc 3 ,
.Xr ungetc 3
.Sh STANDARDS
-.\" $OpenBSD: getwc.3,v 1.5 2015/09/14 13:45:25 schwarze Exp $
+.\" $OpenBSD: getwc.3,v 1.6 2017/12/01 11:18:40 schwarze Exp $
.\"
.\" $NetBSD: getwc.3,v 1.7 2003/09/08 17:54:32 wiz Exp $
.\"
.\"
.\" @(#)getc.3 8.1 (Berkeley) 6/4/93
.\"
-.Dd $Mdocdate: September 14 2015 $
+.Dd $Mdocdate: December 1 2017 $
.Dt GETWC 3
.Os
.Sh NAME
.Xr ferror 3 ,
.Xr fopen 3 ,
.Xr fread 3 ,
+.Xr getc 3 ,
.Xr putwc 3 ,
.Xr stdio 3 ,
.Xr ungetwc 3
-.\" $OpenBSD: printf.3,v 1.76 2017/06/12 18:37:12 millert Exp $
+.\" $OpenBSD: printf.3,v 1.77 2017/12/01 11:18:40 schwarze Exp $
.\"
.\" Copyright (c) 1990, 1991, 1993
.\" The Regents of the University of California. All rights reserved.
.\"
.\" @(#)printf.3 8.1 (Berkeley) 6/4/93
.\"
-.Dd $Mdocdate: June 12 2017 $
+.Dd $Mdocdate: December 1 2017 $
.Dt PRINTF 3
.Os
.Sh NAME
.El
.Sh SEE ALSO
.Xr printf 1 ,
-.Xr scanf 3
+.Xr scanf 3 ,
+.Xr wprintf 3
.Sh STANDARDS
The
.Fn fprintf ,
-.\" $OpenBSD: putc.3,v 1.12 2013/07/18 10:14:49 schwarze Exp $
+.\" $OpenBSD: putc.3,v 1.13 2017/12/01 11:18:40 schwarze Exp $
.\"
.\" Copyright (c) 1990, 1991, 1993
.\" The Regents of the University of California. All rights reserved.
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
.\" SUCH DAMAGE.
.\"
-.Dd $Mdocdate: July 18 2013 $
+.Dd $Mdocdate: December 1 2017 $
.Dt PUTC 3
.Os
.Sh NAME
.Xr ferror 3 ,
.Xr fopen 3 ,
.Xr getc 3 ,
+.Xr putwc 3 ,
.Xr stdio 3
.Sh STANDARDS
The functions
-.\" $OpenBSD: putwc.3,v 1.4 2010/09/10 18:38:19 jmc Exp $
+.\" $OpenBSD: putwc.3,v 1.5 2017/12/01 11:18:40 schwarze Exp $
.\"
.\" $NetBSD: putwc.3,v 1.7 2003/09/08 17:54:32 wiz Exp $
.\"
.\"
.\" @(#)putc.3 8.1 (Berkeley) 6/4/93
.\"
-.Dd $Mdocdate: September 10 2010 $
+.Dd $Mdocdate: December 1 2017 $
.Dt PUTWC 3
.Os
.Sh NAME
.Xr ferror 3 ,
.Xr fopen 3 ,
.Xr getwc 3 ,
+.Xr putc 3 ,
.Xr stdio 3
.Sh STANDARDS
The functions
-.\" $OpenBSD: scanf.3,v 1.22 2013/07/17 05:42:11 schwarze Exp $
+.\" $OpenBSD: scanf.3,v 1.23 2017/12/01 11:18:40 schwarze Exp $
.\"
.\" Copyright (c) 1990, 1991, 1993
.\" The Regents of the University of California. All rights reserved.
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
.\" SUCH DAMAGE.
.\"
-.Dd $Mdocdate: July 17 2013 $
+.Dd $Mdocdate: December 1 2017 $
.Dt SCANF 3
.Os
.Sh NAME
.Xr printf 3 ,
.Xr strtod 3 ,
.Xr strtol 3 ,
-.Xr strtoul 3
+.Xr strtoul 3 ,
+.Xr wscanf 3
.Sh STANDARDS
The functions
.Fn fscanf ,
-.\" $OpenBSD: ungetc.3,v 1.9 2013/07/17 05:42:11 schwarze Exp $
+.\" $OpenBSD: ungetc.3,v 1.10 2017/12/01 11:18:40 schwarze Exp $
.\"
.\" Copyright (c) 1990, 1991, 1993
.\" The Regents of the University of California. All rights reserved.
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
.\" SUCH DAMAGE.
.\"
-.Dd $Mdocdate: July 17 2013 $
+.Dd $Mdocdate: December 1 2017 $
.Dt UNGETC 3
.Os
.Sh NAME
.Sh SEE ALSO
.Xr fseek 3 ,
.Xr getc 3 ,
-.Xr setvbuf 3
+.Xr setvbuf 3 ,
+.Xr ungetwc 3
.Sh STANDARDS
The
.Fn ungetc
-.\" $OpenBSD: ungetwc.3,v 1.4 2010/09/10 18:38:19 jmc Exp $
+.\" $OpenBSD: ungetwc.3,v 1.5 2017/12/01 11:18:40 schwarze Exp $
.\"
.\" $NetBSD: ungetwc.3,v 1.7 2003/09/08 17:54:32 wiz Exp $
.\"
.\"
.\" @(#)ungetc.3 8.1 (Berkeley) 6/4/93
.\"
-.Dd $Mdocdate: September 10 2010 $
+.Dd $Mdocdate: December 1 2017 $
.Dt UNGETWC 3
.Os
.Sh NAME
the operation will fail and the stream will remain unchanged.
.Sh SEE ALSO
.Xr fseek 3 ,
-.Xr getwc 3
+.Xr getwc 3 ,
+.Xr ungetc 3
.Sh STANDARDS
The
.Fn ungetwc