ft_tolower.c 996 B

1234567891011121314151617181920
  1. /* ************************************************************************** */
  2. /* */
  3. /* ::: :::::::: */
  4. /* ft_tolower.c :+: :+: :+: */
  5. /* +:+ +:+ +:+ */
  6. /* By: mazimi <mazimi@student.42.fr> +#+ +:+ +#+ */
  7. /* +#+#+#+#+#+ +#+ */
  8. /* Created: 2014/11/06 17:11:05 by mazimi #+# #+# */
  9. /* Updated: 2014/12/02 16:07:45 by mazimi ### ########.fr */
  10. /* */
  11. /* ************************************************************************** */
  12. #include "../libft.h"
  13. int ft_tolower(int c)
  14. {
  15. if (c >= 'A' && c <= 'Z')
  16. c = c + 32;
  17. return (c);
  18. }