Working on scanner.c

This commit is contained in:
Maieul BOYER 2024-09-05 17:17:53 +00:00
parent f925aea552
commit c5bc77f467
6 changed files with 722 additions and 762 deletions

View file

@ -21,6 +21,8 @@ t_str str_clone(t_const_str source)
t_str res;
t_usize len;
if (source == NULL)
return (NULL);
len = str_len(source) + 1;
res = mem_alloc_array(sizeof(*res), len);
if (res == NULL)