tgrekov-push_swap
HIVE push_swap July 2024
Loading...
Searching...
No Matches
is_sorted.c File Reference

/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* is_sorted.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: tgrekov <tgrekov@student.hive.fi> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2024/07/15 08:05:56 by tgrekov #+# #+# */
/* Updated: 2024/07/17 08:31:35 by tgrekov ### ########.fr */
/* */
/* ************************************************************************** */

Definition in file is_sorted.c.

#include "../utils/utils.h"
#include "stack.h"
Include dependency graph for is_sorted.c:

Go to the source code of this file.

Functions

int is_sorted (t_stack *stack, int mode)
 Check if the contents of a stack are in the correct order relative to the smallest element.
 

Function Documentation

◆ is_sorted()

int is_sorted ( t_stack stack,
int  mode 
)

Check if the contents of a stack are in the correct order relative to the smallest element.

Parameters
[in]stack
[in]mode
Return values
int

Definition at line 31 of file is_sorted.c.

References get_minix().

Here is the call graph for this function:
Here is the caller graph for this function: