Converts a list of strings into a null‐pointer‐terminated array of C strings borrowing the storage of the input strings.

Synopsis

Declared in <folly/cli/Args.h>

std::vector<char const*>
cli_args_strings_to_c_strings(std::span<std::string const> args);

Return Value

A vector of C string pointers borrowing the input storage.

Parameters

Name

Description

args

The strings to convert.

Created with MrDocs