libft / ft_tolower.c 109 commits
14-04-2026
20 lines 997 B
 1/* ************************************************************************** */
 2/*                                                                            */
 3/*                                                        :::      ::::::::   */
 4/*   ft_tolower.c                                       :+:      :+:    :+:   */
 5/*                                                    +:+ +:+         +:+     */
 6/*   By: mleitao <mleitao@student.42.fr>            +#+  +:+       +#+        */
 7/*                                                +#+#+#+#+#+   +#+           */
 8/*   Created: 2026/03/11 16:49:54 by mleitao           #+#    #+#             */
 9/*   Updated: 2026/04/14 19:38:00 by mleitao          ###   ########.fr       */
10/*                                                                            */
11/* ************************************************************************** */
12
13#include "libft.h"
14
15int	ft_tolower(int c)
16{
17	if (c >= 'A' && c <= 'Z')
18		return (c + 32);
19	return (c);
20}