packages feed

hercules-ci-cnix-store-0.3.5.1: include/hercules-ci-cnix/string.hxx

#pragma once
#include <string>

namespace hercules_ci_cnix {

/**
  c_str() on a std::string only works if the std::string doesn't go out of scope.
  `stringdup` is like `strdup(s.c_str())`, but without the undefined behavior.
 */
char * stringdup(const std::string & s);

} // namespace hercules_ci_cnix