A format string is a text string that contains placeholders for values. Each placeholder begins with {, contains either the name or numeric index of a value, and ends with }. "--title-format ...
This program calculates the length of a string without storing it in a fixed-size array. Instead of using dynamic memory (malloc), we directly read characters one by one from input using getchar().