ViewVC Help
View File | Revision Log | Show Annotations | Download File | View Changeset | Root Listing
root/src/vendor/NetBSD/libc-vis/dist/unvis.3
(Generate patch)

Comparing vendor/NetBSD/libc-vis/dist/unvis.3 (file contents):
Revision 11356 by laffer1, Sat Oct 1 21:15:38 2016 UTC vs.
Revision 11357 by laffer1, Fri Jul 6 12:40:24 2018 UTC

# Line 1 | Line 1
1 < .\"     $NetBSD: unvis.3,v 1.27 2012/12/15 07:34:36 wiz Exp $
2 < .\"     $FreeBSD: release/9.2.0/contrib/libc-vis/unvis.3 249560 2013-04-16 19:27:09Z brooks $
1 > .\"     $NetBSD: unvis.3,v 1.29 2017/10/24 19:14:55 abhinav Exp $
2 > .\"     $FreeBSD: stable/10/contrib/libc-vis/unvis.3 326324 2017-11-28 17:20:53Z brooks $
3   .\"
4   .\" Copyright (c) 1989, 1991, 1993
5   .\"     The Regents of the University of California.  All rights reserved.
# Line 35 | Line 35
35   .Os
36   .Sh NAME
37   .Nm unvis ,
38 < .Nm strunvis
38 > .Nm strunvis ,
39 > .Nm strnunvis ,
40 > .Nm strunvisx ,
41 > .Nm strnunvisx
42   .Nd decode a visual representation of characters
43   .Sh LIBRARY
44   .Lb libc
# Line 184 | Line 187 | char out;
187  
188   while ((ch = getchar()) != EOF) {
189   again:
190 <        switch(unvis(\*[Am]out, ch, \*[Am]state, 0)) {
190 >        switch(unvis(&out, ch, &state, 0)) {
191          case 0:
192          case UNVIS_NOCHAR:
193                  break;
# Line 198 | Line 201 | again:
201                  errx(EXIT_FAILURE, "Bad character sequence!");
202          }
203   }
204 < if (unvis(\*[Am]out, '\e0', \*[Am]state, UNVIS_END) == UNVIS_VALID)
204 > if (unvis(&out, '\e0', &state, UNVIS_END) == UNVIS_VALID)
205          (void)putchar(out);
206   .Ed
207   .Sh ERRORS

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines