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:
@ -1,11 +1,5 @@
|
||||
#include "string.h"
|
||||
|
||||
#include <stdbool.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
|
||||
#include "character.h"
|
||||
|
||||
bool string_starts_with(char* string, char* prefix) {
|
||||
size_t string_length = strlen(string);
|
||||
size_t prefix_length = strlen(prefix);
|
||||
|
Reference in New Issue
Block a user