From: Kevin Day Date: Wed, 4 Sep 2024 03:21:15 +0000 (-0500) Subject: Bugfix: Replace index() with strchr(). X-Git-Url: https://git.kevux.org/?a=commitdiff_plain;h=62f6afa3ab6229677f842ff4826342b310a63a8a;p=fll Bugfix: Replace index() with strchr(). The `index()` function is deprecated. Use the `strchr()` function instead. --- diff --git a/level_0/f_environment/c/environment.c b/level_0/f_environment/c/environment.c index 80b8b3c..89a1ee3 100644 --- a/level_0/f_environment/c/environment.c +++ b/level_0/f_environment/c/environment.c @@ -95,7 +95,7 @@ extern char **environ; map.key.used = 0; map.value.used = 0; - at = index(*string, f_string_ascii_equal_s.string[0]); + at = strchr(*string, f_string_ascii_equal_s.string[0]); if (!at || at == *string) continue; map.key.string = *string;