fix: learning to code (with maiboyer standard lib)
This commit is contained in:
parent
e163682e2e
commit
f66e5d76f7
1 changed files with 3 additions and 3 deletions
|
|
@ -6,7 +6,7 @@
|
|||
/* By: rparodi <rparodi@student.42.fr> +#+ +:+ +#+ */
|
||||
/* +#+#+#+#+#+ +#+ */
|
||||
/* Created: 2024/09/27 11:46:45 by rparodi #+# #+# */
|
||||
/* Updated: 2024/09/27 22:35:20 by rparodi ### ########.fr */
|
||||
/* Updated: 2024/09/27 22:40:57 by rparodi ### ########.fr */
|
||||
/* */
|
||||
/* ************************************************************************** */
|
||||
|
||||
|
|
@ -29,13 +29,13 @@ t_error find_end_string(t_str raw, t_usize *start, t_token *output)
|
|||
return (ERROR);
|
||||
if (is_quote(raw[(*start)]))
|
||||
{
|
||||
string_push_char(output->string, raw[(*start)]);
|
||||
string_push_char(&output->string, raw[(*start)]);
|
||||
(*start)++;
|
||||
if (raw[(*start)] == '\0')
|
||||
return (ERROR);
|
||||
while (raw[(*start)] != '\0')
|
||||
{
|
||||
string_push_char(output->string.buf, raw[(*start)]);
|
||||
string_push_char(&output->string, raw[(*start)]);
|
||||
if (is_quote(raw[(*start)]))
|
||||
return (NO_ERROR);
|
||||
(*start)++;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue