On 2022-02-07 at 11:55 +0100, Alex fxmbsw7 Ratchev wrote: > > > however my solution still stays > > > you just use memory locations instead of c strings > > > and those entries in memory are of course of known length, before > > > setting and all is fine > > > > "Your" solution is decades old. Everyone knows how Pascal-style > > strings work. This is not cutting-edge computer science. > > i dunno what pascal strings are, sorry
Pascal strings refers to strings prefixed with their length: https://en.wikipedia.org/wiki/String_(computer_science)#Length-prefixed Basically, what you were proposing. And as Veláquez said, it's ingenuous propose a solution nobody else asked for, expecting others to spend the effort of actually implementing it (plus the critics of their result, such as a limitation on the string length, or of wasted memory for every pointer).