Home
last modified time | relevance | path

Searched refs:snprintf_safe (Results 1 – 4 of 4) sorted by relevance

/external/libxkbcommon/test/
Dutils.c39 assert(!snprintf_safe(buffer, 0, "foo")); in main()
40 assert(!snprintf_safe(buffer, 1, "foo")); in main()
41 assert(!snprintf_safe(buffer, 3, "foo")); in main()
43 assert(snprintf_safe(buffer, 10, "foo")); in main()
46 assert(!snprintf_safe(buffer, 10, "%s", "1234567890")); in main()
47 assert(snprintf_safe(buffer, 10, "%s", "123456789")); in main()
Dregistry.c114 rc = snprintf_safe(buf, sizeof(buf), "%s/rules", tmpdir); in test_create_rules()
118 rc = snprintf_safe(buf, sizeof(buf), "%s/rules/%s.xml", tmpdir, ruleset); in test_create_rules()
201 rc = snprintf_safe(path, sizeof(path), "%s/rules/%s.xml", basedir, in test_remove_rules()
205 rc = snprintf_safe(path, sizeof(path), "%s/xkb/rules", basedir); in test_remove_rules()
/external/libxkbcommon/src/
Dutils.h304 snprintf_safe(char *buf, size_t sz, const char *format, ...) in snprintf_safe() function
Dregistry.c571 if (!snprintf_safe(rules, sizeof(rules), "%s/rules/%s.xml", in rxkb_context_include_path_append()
657 if (snprintf_safe(rules, sizeof(rules), "%s/rules/%s.xml", in rxkb_context_parse()
665 snprintf_safe(rules, sizeof(rules), "%s/rules/%s.extras.xml", in rxkb_context_parse()