vis.3 (ff88ef4183d34943e90dda4138857bcee2d8e092) vis.3 (ea46e63863df9bd36b65f7293092214f1937349e)
1.\" $NetBSD: vis.3,v 1.49 2017/08/05 20:22:29 wiz Exp $
2.\" $FreeBSD$
1.\" $NetBSD: vis.3,v 1.50 2022/12/04 11:25:08 uwe Exp $
3.\"
4.\" Copyright (c) 1989, 1991, 1993
5.\" The Regents of the University of California. All rights reserved.
6.\"
7.\" Redistribution and use in source and binary forms, with or without
8.\" modification, are permitted provided that the following conditions
9.\" are met:
10.\" 1. Redistributions of source code must retain the above copyright

--- 164 unchanged lines hidden (view full) ---

175.Fa dlen
176is not large enough to fit the converted string then the
177.Fn strnvis
178and
179.Fn strnvisx
180functions return \-1 and set
181.Va errno
182to
2.\"
3.\" Copyright (c) 1989, 1991, 1993
4.\" The Regents of the University of California. All rights reserved.
5.\"
6.\" Redistribution and use in source and binary forms, with or without
7.\" modification, are permitted provided that the following conditions
8.\" are met:
9.\" 1. Redistributions of source code must retain the above copyright

--- 164 unchanged lines hidden (view full) ---

174.Fa dlen
175is not large enough to fit the converted string then the
176.Fn strnvis
177and
178.Fn strnvisx
179functions return \-1 and set
180.Va errno
181to
183.Dv ENOSPC .
182.Er ENOSPC .
184The
185.Fn strenvisx
186function takes an additional argument,
187.Fa cerr_ptr ,
188that is used to pass in and out a multibyte conversion error flag.
189This is useful when processing single characters at a time when
190it is possible that the locale may be set to something other
191than the locale of the characters in the input data.

--- 368 unchanged lines hidden ---
183The
184.Fn strenvisx
185function takes an additional argument,
186.Fa cerr_ptr ,
187that is used to pass in and out a multibyte conversion error flag.
188This is useful when processing single characters at a time when
189it is possible that the locale may be set to something other
190than the locale of the characters in the input data.

--- 368 unchanged lines hidden ---