about summary refs log tree commit diff
path: root/stdio-common/tst-sprintf.c
blob: afbacd90375c86ac7563bff88e96db13aee0106f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#include <stdio.h>
#include <string.h>


int
main (void)
{
  char buf[100];
  int result = 0;

  if (sprintf (buf, "%.0ls", L"foo") != 0
      || strlen (buf) != 0)
    {
      puts ("sprintf (buf, \"%.0ls\", L\"foo\") produced some output\n");
      result = 1;
    }

  return result;
}