1
1
mirror of https://github.com/theoludwig/programming-challenges.git synced 2025-05-18 12:02:53 +02:00

fix(solutions): fix: more memory issues thanks to -fsanitize=address flag with gcc

This commit is contained in:
2023-08-21 21:37:54 +02:00
parent 395cd142b8
commit d73ae4dd07
14 changed files with 1020 additions and 851 deletions

View File

@ -5,10 +5,3 @@ void character_append(char* string, char character) {
string[length] = character;
string[length + 1] = '\0';
}
void character_append_many(char* string, char* characters) {
size_t characters_length = strlen(characters);
for (size_t index = 0; index < characters_length; index++) {
character_append(string, characters[index]);
}
}