5 POSIX specification:@* @url{http://www.opengroup.org/onlinepubs/9699919799/functions/va_arg.html}
9 Portability problems fixed by Gnulib:
13 Portability problems not fixed by Gnulib:
16 The second argument of @code{va_arg} must be a type that is invariant under
17 the ``default argument promotions'' (ISO C 99 6.5.2.2 paragraph 6). This
18 means that the following are not valid here:
21 Use @samp{double} instead.
23 Use @samp{int} instead.
24 @item Integer types smaller than @samp{int}.
25 Use @samp{int} or @samp{unsigned int} instead.
28 This is a portability problem because you don't know the width of some
29 abstract types like @code{uid_t}, @code{gid_t}, @code{mode_t}. So, instead of
31 mode = va_arg (ap, mode_t);
35 mode = (sizeof (mode_t) < sizeof (int)
37 : va_arg (ap, mode_t));