Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. =================================================================== RCS file: /ftp/cvs/cvsroot/src/lib/libc/gen/shquote.3,v rcsdiff: /ftp/cvs/cvsroot/src/lib/libc/gen/shquote.3,v: warning: Unknown phrases like `commitid ...;' are present. retrieving revision 1.2.2.2 retrieving revision 1.2.2.3 diff -u -p -r1.2.2.2 -r1.2.2.3 --- src/lib/libc/gen/shquote.3 2001/10/08 20:19:23 1.2.2.2 +++ src/lib/libc/gen/shquote.3 2002/03/08 21:35:15 1.2.2.3 @@ -1,4 +1,4 @@ -.\" $NetBSD: shquote.3,v 1.2.2.2 2001/10/08 20:19:23 nathanw Exp $ +.\" $NetBSD: shquote.3,v 1.2.2.3 2002/03/08 21:35:15 nathanw Exp $ .\" .\" Copyright (c) 2001 Christopher G. Demetriou .\" All rights reserved. @@ -42,7 +42,7 @@ .Sh LIBRARY .Lb libc .Sh SYNOPSIS -.Fd #include +.Fd #include \*[Lt]stdlib.h\*[Gt] .Ft size_t .Fn shquote "const char *arg" "char *buf" "size_t bufsize" .Ft size_t @@ -153,7 +153,7 @@ int argc; * Size buffer to hold the command string, and allocate it. * Buffer of length one given to snprintf() for portability. */ -cmdlen = snprintf(&c, 1, "${PROG-%s} ", PROG_DEFAULT); +cmdlen = snprintf(\*[Am]c, 1, "${PROG-%s} ", PROG_DEFAULT); qlen = shquotev(argc, argv, NULL, 0) + 1; if (qlen == (size_t)-1) { \&... @@ -191,8 +191,8 @@ int argc, i; * Size buffer to hold the command string, and allocate it. * Buffer of length one given to snprintf() for portability. */ -cmdlen = snprintf(&c, 1, "${PROG-%s} ", PROG_DEFAULT); -for (i = 0; i < argc; i++) { +cmdlen = snprintf(\*[Am]c, 1, "${PROG-%s} ", PROG_DEFAULT); +for (i = 0; i \*[Lt] argc; i++) { qlen = shquote(argv[i], NULL, 0) + 1; if (qlen == (size_t)-1) { \&... @@ -208,7 +208,7 @@ if (cmd == NULL) { len = snprintf(cmd, cmdlen, "${PROG-%s} ", PROG_DEFAULT); /* Quote all of the arguments when copying them. */ -for (i = 0; i < argc; i++) { +for (i = 0; i \*[Lt] argc; i++) { qlen = shquote(argv[i], cmd + len, cmdlen - len); if (qlen == (size_t)-1) { /* Should not ever happen. */