core: use std::string instead of strndup()

Allows us to remove the strndup.h header. This code will be
even more simple, once core is fully converted away from C-strings.

Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
Berthold Stoeger 2024-03-29 08:47:10 +01:00 committed by bstoeger
parent 177a1a6706
commit e7a6de3894
6 changed files with 11 additions and 42 deletions

View file

@ -167,7 +167,6 @@ set(SUBSURFACE_CORE_LIB_SRCS
ssrf.h
statistics.c
statistics.h
strndup.h
string-format.h
string-format.cpp
strtod.c