diff options
| author | Johnny Richard <johnny@johnnyrichard.com> | 2025-04-14 23:22:57 +0200 |
|---|---|---|
| committer | Johnny Richard <johnny@johnnyrichard.com> | 2025-04-14 23:22:57 +0200 |
| commit | b3bd068f614a46580ee3e5688dd9cfd40694d75b (patch) | |
| tree | 45183f99a8373527caa03ff473c4e40fe07cd459 /src/string_view.c | |
| parent | 63104d34e1c1772131f6366f825e67f38d027dba (diff) | |
Signed-off-by: Johnny Richard <johnny@johnnyrichard.com>
Diffstat (limited to 'src/string_view.c')
| -rw-r--r-- | src/string_view.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/string_view.c b/src/string_view.c index 275e9bb..efb1329 100644 --- a/src/string_view.c +++ b/src/string_view.c @@ -14,13 +14,13 @@ * You should have received a copy of the GNU General Public License * along with this program. If not, see <https://www.gnu.org/licenses/>. */ -#include <string.h> #include "string_view.h" +#include <string.h> string_view_t -string_view_from_cstr(char *cstr) +string_view_from_cstr(char* cstr) { - return (string_view_t) { .size = strlen(cstr), .chars = cstr }; + return (string_view_t){ .size = strlen(cstr), .chars = cstr }; } bool |
