Mail Archives: djgpp/2001/04/24/15:00:13
Matt Bayliss <grebz AT hiddenemail DOT com> wrote:
> Hi there,
> I'm using DJGPP (gcc version 2.95 19990728 (release) )
A somewhat outdated release. You may want to upgrade to 2.95.2 or higher.
> and when I try the following statement:
> printf("\nLength of string = %U\n", (strlen(buffer)) );
> I get the error message:
> strlen.c:16: warning: unknown conversion type character `U' in format
Note that this is _not_ an error message. It's just a warning, and you
get it because unlike the docs, or our library *GCC* itself does not
know about 'U' format in *printf() functions. That's not a surprise,
either --- it's a nonstandard format. Use the standardized format
specifier "%lu" instead, and both you and GCC will be happy with it.
--
Hans-Bernhard Broeker (broeker AT physik DOT rwth-aachen DOT de)
Even if all the snow were burnt, ashes would remain.
- Raw text -