/ fdf / fdf / libft / ft_toupper.c
ft_toupper.c
 1  /* ************************************************************************** */
 2  /*                                                                            */
 3  /*                                                        :::      ::::::::   */
 4  /*   ft_toupper.c                                       :+:      :+:    :+:   */
 5  /*                                                    +:+ +:+         +:+     */
 6  /*   By: gychoi <marvin@42.fr>                      +#+  +:+       +#+        */
 7  /*                                                +#+#+#+#+#+   +#+           */
 8  /*   Created: 2022/07/08 17:20:23 by gychoi            #+#    #+#             */
 9  /*   Updated: 2022/07/11 15:04:14 by gychoi           ###   ########.fr       */
10  /*                                                                            */
11  /* ************************************************************************** */
12  
13  int	ft_toupper(int c)
14  {
15  	if (c >= 97 && c <= 122)
16  		return (c - 32);
17  	return (c);
18  }