MCPcopy Create free account
hub / github.com/GNOME/gjs / strndupv

Function strndupv

gjs/console.cpp:75–84  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

73 {nullptr}};
74
75[[nodiscard]]
76static Gjs::AutoStrv strndupv(int n, char* const* strv) {
77 Gjs::AutoPointer<GStrvBuilder, GStrvBuilder, g_strv_builder_unref> builder{
78 g_strv_builder_new()};
79
80 for (int i = 0; i < n; ++i)
81 g_strv_builder_add(builder, strv[i]);
82
83 return g_strv_builder_end(builder);
84}
85
86[[nodiscard]]
87static Gjs::AutoStrv strcatv(char** strv1, char** strv2) {

Callers 1

mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected