Seluj78/Minishell

View on GitHub
libft/ft_isprint.c

Summary

Maintainability
Test Coverage
/* ************************************************************************** */
/*                                                                            */
/*                                                        :::      ::::::::   */
/*   ft_isprint.c                                       :+:      :+:    :+:   */
/*                                                    +:+ +:+         +:+     */
/*   By: jlasne <marvin@42.fr>                      +#+  +:+       +#+        */
/*                                                +#+#+#+#+#+   +#+           */
/*   Created: 2016/11/03 14:29:01 by jlasne            #+#    #+#             */
/*   Updated: 2016/11/03 14:29:09 by jlasne           ###   ########.fr       */
/*                                                                            */
/* ************************************************************************** */

#include "libft.h"

int        ft_isprint(int c)
{
    if (c >= 32 && c <= 126)
        return (_SUCCESS_);
    return (_ERROR_);
}