Rework str.h
commit05329549133ec8e86b818f89647a909574f7a264
authorOlly Betts <olly@survex.com>
Wed, 13 Mar 2024 20:39:45 +0000 (14 09:39 +1300)
committerOlly Betts <olly@survex.com>
Wed, 13 Mar 2024 20:39:45 +0000 (14 09:39 +1300)
treeb715844052a85e9915d5402163a06bb50266353c
parent3ebfd6aa7cabc7a0130d60488a9043586c71a5d6
Rework str.h

The previous implementation was O(n²) for a loop appending n characters
to the string.  In practice the strings are typically very short for
.svx format, but for other formats they may be longer so it seems silly
to have this known inefficiency.
src/cavern.c
src/cavern.h
src/commands.c
src/commands.h
src/datain.c
src/netskel.c
src/readval.c
src/readval.h
src/str.c
src/str.h
src/survexport.cc