Normed most of the stdme
This commit is contained in:
parent
882d5cb5bb
commit
ac5458d42c
31 changed files with 149 additions and 617 deletions
|
|
@ -6,7 +6,7 @@
|
|||
/* By: maiboyer <maiboyer@student.42.fr> +#+ +:+ +#+ */
|
||||
/* +#+#+#+#+#+ +#+ */
|
||||
/* Created: 2023/11/06 16:05:48 by maiboyer #+# #+# */
|
||||
/* Updated: 2024/05/18 16:34:33 by maiboyer ### ########.fr */
|
||||
/* Updated: 2024/07/10 18:00:28 by maiboyer ### ########.fr */
|
||||
/* */
|
||||
/* ************************************************************************** */
|
||||
|
||||
|
|
@ -16,10 +16,10 @@
|
|||
#include "me/str/str.h"
|
||||
#include <stdlib.h>
|
||||
|
||||
t_str str_clone(t_const_str source)
|
||||
t_str str_clone(t_const_str source)
|
||||
{
|
||||
t_str res;
|
||||
t_usize len;
|
||||
t_usize len;
|
||||
|
||||
len = str_len(source) + 1;
|
||||
res = mem_alloc_array(sizeof(*res), len);
|
||||
|
|
|
|||
|
|
@ -6,16 +6,15 @@
|
|||
/* By: maiboyer <maiboyer@student.42.fr> +#+ +:+ +#+ */
|
||||
/* +#+#+#+#+#+ +#+ */
|
||||
/* Created: 2023/11/04 18:53:47 by maiboyer #+# #+# */
|
||||
/* Updated: 2024/05/04 18:37:40 by maiboyer ### ########.fr */
|
||||
/* Updated: 2024/07/10 18:00:43 by maiboyer ### ########.fr */
|
||||
/* */
|
||||
/* ************************************************************************** */
|
||||
|
||||
#include "me/str/str.h"
|
||||
|
||||
// PLEASE FIX THIS FUNCTION IF NEEDED !
|
||||
bool str_compare(t_const_str lhs, t_const_str rhs)
|
||||
bool str_compare(t_const_str lhs, t_const_str rhs)
|
||||
{
|
||||
t_usize index;
|
||||
t_usize index;
|
||||
|
||||
if (lhs == NULL || rhs == NULL)
|
||||
return (lhs == rhs);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue