tgrekov-pipex
HIVE pipex May 2024
Loading...
Searching...
No Matches
arr_cut.c File Reference

/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* arr_cut.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: tgrekov <tgrekov@student.hive.fi> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2024/04/22 06:40:30 by tgrekov #+# #+# */
/* Updated: 2024/05/06 14:18:39 by tgrekov ### ########.fr */
/* */
/* ************************************************************************** */

Definition in file arr_cut.c.

#include <stdlib.h>
#include "utils.h"
Include dependency graph for arr_cut.c:

Go to the source code of this file.

Functions

void ** arr_cut (void **arr, int len)
 Create new null-terminated array containing first len elements of arr.
 

Function Documentation

◆ arr_cut()

void ** arr_cut ( void **  arr,
int  len 
)

Create new null-terminated array containing first len elements of arr.

Parameters
arrSource array to duplicate
lenNumber of elements to duplicate
Return values
void**Null-terminated array containing first len elements of arr

Definition at line 32 of file arr_cut.c.

References err().

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