[BACK]Return to fmtcheck.3 CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / src / lib / libc / gen

Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.

Diff for /src/lib/libc/gen/fmtcheck.3 between version 1.1.2.3 and 1.2

version 1.1.2.3, 2002/10/18 02:15:47 version 1.2, 2002/02/07 07:00:11
Line 63  is a valid format string.
Line 63  is a valid format string.
 The  The
 .Xr printf 3  .Xr printf 3
 family of functions can not verify the types of arguments that they are  family of functions can not verify the types of arguments that they are
 passed at run-time.  passed at run-time.  In some cases, like
 In some cases, like  
 .Xr catgets 3 ,  .Xr catgets 3 ,
 it is useful or necessary to use a user-supplied format string with no  it is useful or necessary to use a user-supplied format string with no
 guarantee that the format string matches the specified parameters.  guarantee that the format string matches the specified parameters.
Line 79  printf(fmtcheck(user_format, standard_fo
Line 78  printf(fmtcheck(user_format, standard_fo
 In the check, field widths, fillers, precisions, etc. are ignored (unless  In the check, field widths, fillers, precisions, etc. are ignored (unless
 the field width or precision is an asterisk  the field width or precision is an asterisk
 .Ql *  .Ql *
 instead of a digit string).  instead of a digit string).  Also, any text other than the format specifiers
 Also, any text other than the format specifiers is completely ignored.  is completely ignored.
 .Pp  .Pp
 Note that the formats may be quite different as long as they accept the  Note that the formats may be quite different as long as they accept the
 same parameters.  same parameters.  For example, ".Dq %p %o %30s %#llx %-10.*e %n" is
 For example, "%p %o %30s %#llx %-10.*e %n" is  
 compatible with "This number %lu %d%% and string %s has %qd numbers  compatible with "This number %lu %d%% and string %s has %qd numbers
 and %.*g floats (%n)."  and %.*g floats (%n)."  However, "%o" is not equivalent to "%lx" because
 However, "%o" is not equivalent to "%lx" because  
 the first requires an integer and the second requires a long.  the first requires an integer and the second requires a long.
 .Sh RETURN VALUES  .Sh RETURN VALUES
 If  If

Legend:
Removed from v.1.1.2.3  
changed lines
  Added in v.1.2

CVSweb <webmaster@jp.NetBSD.org>