ft_toupper.c 995 B

1234567891011121314151617181920
  1. /* ************************************************************************** */
  2. /* */
  3. /* ::: :::::::: */
  4. /* ft_toupper.c :+: :+: :+: */
  5. /* +:+ +:+ +:+ */
  6. /* By: mazimi <mazimi@student.42.fr> +#+ +:+ +#+ */
  7. /* +#+#+#+#+#+ +#+ */
  8. /* Created: 2014/11/08 17:23:39 by mazimi #+# #+# */
  9. /* Updated: 2014/12/02 16:07:56 by mazimi ### ########.fr */
  10. /* */
  11. /* ************************************************************************** */
  12. #include "../libft.h"
  13. int ft_toupper(int c)
  14. {
  15. if (c >= 97 && c <= 122)
  16. c = c - 32;
  17. return (c);
  18. }