Working on scanner.c
This commit is contained in:
parent
f925aea552
commit
c5bc77f467
6 changed files with 722 additions and 762 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue