ft_strcat.c 1.0 KB

1234567891011121314151617181920
  1. /* ************************************************************************** */
  2. /* */
  3. /* ::: :::::::: */
  4. /* ft_strcat.c :+: :+: :+: */
  5. /* +:+ +:+ +:+ */
  6. /* By: bchanot <bchanot@students.42.fr> +#+ +:+ +#+ */
  7. /* +#+#+#+#+#+ +#+ */
  8. /* Created: 2015/11/23 16:18:39 by bchanot #+# #+# */
  9. /* Updated: 2016/05/22 21:09:03 by bchanot ### ########.fr */
  10. /* */
  11. /* ************************************************************************** */
  12. #include "libft.h"
  13. char *ft_strcat(char *s1, const char *s2)
  14. {
  15. if (s1 && s2)
  16. ft_strcpy(&s1[ft_strlen(s1)], s2);
  17. return (s1);
  18. }