iBusiness
Boolean, 42_piscine...
 
Share:
Notifications
Clear all

Boolean, 42_piscine/day08/ex02/ft_boolean.h  

  RSS

Isaac More
(@isaacmore)
Member Admin
Joined: 1 year ago
Posts: 189
19/06/2020 10:40 am  

Create a ft_boolean.h file, it'll compile and run the code in the image below.

[attach]28[/attach]

Suggested Solution to help guide you

/* ************************************************************************** */
/*                                                                            */
/*                                                        :::      ::::::::   */
/*   ft_boolean.h                                       :+:      :+:    :+:   */
/*                                                    +:+ +:+         +:+     */
/*   By: rariosa- <rariosa-@student.42.fr>          +#+  +:+       +#+        */
/*                                                +#+#+#+#+#+   +#+           */
/*   Created: 2017/08/17 14:47:23 by rariosa-          #+#    #+#             */
/*   Updated: 2017/08/17 14:55:32 by rariosa-         ###   ########.fr       */
/*                                                                            */
/* ************************************************************************** */

#ifndef FT_BOOLEAN_H

# define FT_BOOLEAN_H
# define TRUE 1
# define FALSE 0
# define EVEN(x) ((x) % 2)
# define EVEN_MSG "I have an even number of arguments.\n"
# define ODD_MSG "I have an odd number of arguments.\n"
# define SUCCESS 0

# include <unistd.h>

typedef int	t_bool;

#endif

 

 


Quote
Share:

We use cookies to ensure that we give you the best experience on our website. If you continue to use this site we will assume that you are happy with it. OK Read More