src/utils/unix_utils.c
/** 
 * Creates a new process by duplicating the calling process.
 * @param pid The new process id.
 * @returns Wether the execution was sucessfull.
 * @note Use errorn!
 */
Creates a new process by duplicating the calling process.
@param pid The new process id.
@returns Wether the execution was sucessfull.
@note Use errorn!
Creates a new process by duplicating the calling process . @param pid The new process id . @returns Wether the execution was sucessfull . @note Use errorn!
t_bool	ft_fork(pid_t *pid)
{
	t_i32	output;
	output = fork();
	if (output == -1)
		return (false);
	*pid = output;
	return (true);
}
t_bool ft_fork ( pid_t * pid ) { t_i32 output ; output = fork ( ) ; if ( output == -1 ) return ( false ) ; * pid = output ; return ( true ) ; }
Creates a new process by duplicating the calling process.
Creates a new process by duplicating the calling process .