Skip to content

Commit 63314d5

Browse files
authored
Remove lstringdup
lstringdup makes no sense because we have to allocate the underlying buffer beforehand. Just create a new buffer and lstringcpy it.
1 parent 40078e8 commit 63314d5

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

spstring.h

-1
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,6 @@ size_t lstringcpy ( LString *dst, const LString *src );
6464
size_t lstringchcpy ( LString *dst, const char *src );
6565
size_t lstringcat ( LString *dst, const LString *src );
6666
size_t lstringchcat ( LString *dst, const char *src );
67-
LString lstringdup ( const LString *src );
6867

6968

7069
/* =================== Dynamic allocation on the Heap =======================

0 commit comments

Comments
 (0)