/* Test of snprintf() function.
- Copyright (C) 2007-2011 Free Software Foundation, Inc.
+ Copyright (C) 2007-2012 Free Software Foundation, Inc.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
/* Test the support of the POSIX/XSI format strings with positions. */
{
char result[100];
- int retval = snprintf (result, sizeof (result), "%2$d %1$d", 33, 55);
+ retval = snprintf (result, sizeof (result), "%2$d %1$d", 33, 55);
ASSERT (strcmp (result, "55 33") == 0);
ASSERT (retval == strlen (result));
}