5.3.4.125. Function tools_str_format_placeholder

5.3.4.125.1. Function Documentation

void tools_str_format_placeholder(char *destination, const size_t length, const char *source, const char *placeholder, const char *value)

Replace a placeholder in the source string with a string value.

Parameters
  • destination – Destination string.

  • length – Size of the destination string to ensure no overflow.

  • source – Source string.

  • placeholder – The string placeholder that will be replaced (e.g. “{id}”).

  • value – The string value to replace the placeholder with.