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

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

This commit is contained in:
2023-08-10 11:13:06 +02:00
parent 3b6cc97bb5
commit 0245c7a12c
96 changed files with 712 additions and 453 deletions

View File

@ -1,11 +1,5 @@
#include "string.h"
#include <stdbool.h>
#include <stdlib.h>
#include <string.h>
#include "character.h"
size_t string_total_occurrences_of_character(char* string, char character) {
size_t result = 0;
size_t string_length = strlen(string);