-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpushswap.h
More file actions
58 lines (56 loc) · 2.16 KB
/
pushswap.h
File metadata and controls
58 lines (56 loc) · 2.16 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
/* ************************************************************************** */
/* */
/* :::::::: */
/* pushswap.h :+: :+: */
/* +:+ */
/* By: candace <candace@student.codam.nl> +#+ */
/* +#+ */
/* Created: 2022/05/30 10:23:45 by candace #+# #+# */
/* Updated: 2022/10/20 14:37:18 by cstaats ######## odam.nl */
/* */
/* ************************************************************************** */
#ifndef PUSHSWAP_H
# define PUSHSWAP_H
# include <stdlib.h>
# include <stdio.h>
# include <stddef.h>
# include <unistd.h>
# include <limits.h>
typedef struct s_list
{
void *content;
size_t content_size;
struct s_list *next;
} t_list;
long ft_atoi(char *str);
int ft_isdigitstr(char *str);
int isduplicate(int *array, int size, int value);
void *errorchecks(int argc, char **argv);
void whichmethod(int *stacka, int arraylen);
int arraylen(int *arr);
int *indexarray( int *array, int size);
void sa(int *stacka);
void pa(int *stacka, int *stackb);
void ra(int *stacka);
void rra(int *stacka);
void sb(int *stackb);
void pb(int *stacka, int *stackb);
void rb(int *stackb);
void rrb(int *stackb);
void ss(int *stacka, int *stackb);
void rr(int *stacka, int *stackb);
void rrr(int *stacka, int *stackb);
void method4(int *stacka);
void repeat4(int *stacka);
int method3(int *stacka, int arraylen);
void ft_bzero(void *s, size_t n);
void *ft_calloc(size_t nitems, size_t size);
int amisorted(int *stacka, int arraylen);
void *errorcheck(int argc, char **argv);
int *createb(int *stacka);
void sort(int *stacka, int arraylen);
int isminimum(int *array, int size, int *min, int *lowest_idx);
void wheres5(int *stacka);
void method5(int *stacka, int arraylen);
size_t ft_strlen(char const *str);
#endif