maxishell
Implementation of a shell for Linux-like systems
Loading...
Searching...
No Matches
ft_strcat.c File Reference
#include "libft.h"
Include dependency graph for ft_strcat.c:

Go to the source code of this file.

Functions

char * ft_strcat (char *dest, char *src)
 

Function Documentation

◆ ft_strcat()

char * ft_strcat ( char *  dest,
char *  src 
)

Definition at line 26 of file ft_strcat.c.

27{
28 int i;
29 int j;
30
31 i = 0;
32 while (dest[i] != '\0')
33 i++;
34 j = 0;
35 while (src[j] != '\0')
36 {
37 dest[i + j] = src[j];
38 j++;
39 }
40 dest[i + j] = '\0';
41 return (dest);
42}

Referenced by assemble_result(), generate_prompt(), and token_adj().

Here is the caller graph for this function: