2 * SPDX-License-Identifier: LGPL-2.1-or-later
4 * Copyright (C) 2009 Pierre-Marc Fournier
9 #include "common/safe-snprintf.h"
16 const char expected_str
[] = "header 9999, hello, 005, ' 9'";
17 const char test_fmt_str
[] = "header %d, %s, %03d, '%*d'";
21 ust_safe_snprintf(buf
, 99, test_fmt_str
, 9999, "hello", 5, 5, 9);
23 ok(strcmp(buf
, expected_str
) == 0, "Got expected output string with format string \"%s\"", test_fmt_str
);
This page took 0.030919 seconds and 4 git commands to generate.