[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.1 and 1.4

version 1.1.2.1, 2002/03/08 21:35:04 version 1.4, 2002/10/01 19:47:40
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.  In some cases, like  passed at run-time.
   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 78  printf(fmtcheck(user_format, standard_fo
Line 79  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).  Also, any text other than the format specifiers  instead of a digit string).
 is completely ignored.  Also, any text other than the format specifiers 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.  For example, ".Dq %p %o %30s %#llx %-10.*e %n" is  same parameters.
   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)."  However, "%o" is not equivalent to "%lx" because  and %.*g floats (%n)."
   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.1  
changed lines
  Added in v.1.4

CVSweb <webmaster@jp.NetBSD.org>