ft_isascii.c 979 B

123456789101112131415161718
  1. /* ************************************************************************** */
  2. /* */
  3. /* ::: :::::::: */
  4. /* ft_isascii.c :+: :+: :+: */
  5. /* +:+ +:+ +:+ */
  6. /* By: mazimi <mazimi@student.42.fr> +#+ +:+ +#+ */
  7. /* +#+#+#+#+#+ +#+ */
  8. /* Created: 2014/11/05 18:39:39 by mazimi #+# #+# */
  9. /* Updated: 2015/02/18 21:55:15 by mazimi ### ########.fr */
  10. /* */
  11. /* ************************************************************************** */
  12. #include "../libft.h"
  13. int ft_isascii(int c)
  14. {
  15. return (c >= 0 && c <= 127 ? 1 : 0);
  16. }