Lines Matching refs:n
10 size_t n; member
24 size_t n; in main() local
28 n = swprintf (buf, nbuf, L"Hello %s", "world"); in main()
29 if (n != 11) in main()
31 printf ("incorrect return value: %zd instead of 11\n", n); in main()
41 n = swprintf (buf, nbuf, L"Is this >%g< 3.1?", 3.1); in main()
42 if (n != 18) in main()
44 printf ("incorrect return value: %zd instead of 18\n", n); in main()
54 for (n = 0; n < sizeof (tests) / sizeof (tests[0]); ++n) in main()
56 ssize_t res = swprintf (buf, tests[n].n, L"%s", tests[n].str); in main()
58 if (tests[n].exp < 0 && res >= 0) in main()
61 tests[n].n, tests[n].str); in main()
64 else if (tests[n].exp >= 0 && tests[n].exp != res) in main()
67 tests[n].n, tests[n].str, tests[n].exp, res); in main()
72 tests[n].n, tests[n].str); in main()