From c3d1f9350aed162c5667982ebf62162fa2275ead Mon Sep 17 00:00:00 2001 From: Intel A80486DX2-66 Date: Fri, 28 Jun 2024 13:56:12 +0300 Subject: [PATCH] str_replace.h: make sure the header is included only once --- c-programming/strings/str_replace.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/c-programming/strings/str_replace.h b/c-programming/strings/str_replace.h index 5cef608..6a04c69 100644 --- a/c-programming/strings/str_replace.h +++ b/c-programming/strings/str_replace.h @@ -5,6 +5,9 @@ * License: Unlicense */ +#ifndef _STR_REPLACE_H +#define _STR_REPLACE_H + #include #include @@ -16,3 +19,5 @@ char* str_replace( const char* replacement, ssize_t max_count ); + +#endif /* _STR_REPLACE_H */