Skip to content

Commit

Permalink
Changes before push_swap submission
Browse files Browse the repository at this point in the history
  • Loading branch information
Matthew Yeow committed Apr 6, 2024
1 parent b28971d commit b7a032b
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 8 deletions.
2 changes: 1 addition & 1 deletion includes/libft.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
/* By: myeow <[email protected]> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2024/02/15 16:11:56 by myeow #+# #+# */
/* Updated: 2024/04/05 20:29:48 by myeow ### ########.fr */
/* Updated: 2024/04/06 23:04:40 by myeow ### ########.fr */
/* */
/* ************************************************************************** */

Expand Down
10 changes: 7 additions & 3 deletions srcs/err_utils/ft_error.c
Original file line number Diff line number Diff line change
Expand Up @@ -6,18 +6,22 @@
/* By: myeow <[email protected]> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2024/03/28 18:51:00 by myeow #+# #+# */
/* Updated: 2024/04/01 17:32:07 by myeow ### ########.fr */
/* Updated: 2024/04/07 01:36:45 by myeow ### ########.fr */
/* */
/* ************************************************************************** */

#include "../../includes/ft_error.h"
#include "../../includes/libft.h"

/*
* ft_putstr_fd("Error: ", 2);
* ft_putnbr_fd(e, 2);
* ft_putchar_fd('\n', 2);
*/
int ft_error(t_error e)
{
if (e == OK)
return (OK);
ft_putstr_fd("Error: ", 2);
ft_putnbr_fd(e, 2);
ft_putendl_fd("Error", 2);
return (e);
}
2 changes: 1 addition & 1 deletion srcs/lst_utils/ft_lstclear.c
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
/* By: myeow <[email protected]> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2024/02/20 21:29:46 by myeow #+# #+# */
/* Updated: 2024/03/28 20:43:02 by myeow ### ########.fr */
/* Updated: 2024/04/06 00:29:54 by myeow ### ########.fr */
/* */
/* ************************************************************************** */

Expand Down
3 changes: 2 additions & 1 deletion srcs/mem_utils/ft_memclear.c
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,12 @@
/* By: myeow <[email protected]> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2024/04/05 20:26:45 by myeow #+# #+# */
/* Updated: 2024/04/05 20:30:52 by myeow ### ########.fr */
/* Updated: 2024/04/06 00:30:10 by myeow ### ########.fr */
/* */
/* ************************************************************************** */

#include <stdlib.h>
#include <stdio.h>

/*
* Pair this with ft_lstclear.
Expand Down
3 changes: 2 additions & 1 deletion srcs/str_utils/ft_free_ft_split.c
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,12 @@
/* By: myeow <[email protected]> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2024/04/05 18:59:36 by myeow #+# #+# */
/* Updated: 2024/04/05 19:02:20 by myeow ### ########.fr */
/* Updated: 2024/04/06 00:26:45 by myeow ### ########.fr */
/* */
/* ************************************************************************** */

#include <stdlib.h>
#include <stdio.h>

void ft_free_ft_split(char **str_array)
{
Expand Down
2 changes: 1 addition & 1 deletion srcs/str_utils/ft_strendptr.c
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
/* By: myeow <[email protected]> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2024/02/17 23:03:13 by myeow #+# #+# */
/* Updated: 2024/03/28 19:31:38 by myeow ### ########.fr */
/* Updated: 2024/04/06 23:04:21 by myeow ### ########.fr */
/* */
/* ************************************************************************** */

Expand Down

0 comments on commit b7a032b

Please sign in to comment.