42sh 1.0.0
Create a shell in C
Loading...
Searching...
No Matches
my_strcpy.c File Reference

The file containing the my_strcpy function. More...

#include "my.h"

Functions

char * my_strcpy (char *dest, char const *src)
 Copies a string (src) and paste it on another string (dest)
 

Detailed Description

The file containing the my_strcpy function.

Author
Nicolas TORO

Function Documentation

◆ my_strcpy()

char * my_strcpy ( char * dest,
char const * src )

Copies a string (src) and paste it on another string (dest)

Note
The destination string must be allocated
Parameters
destThe destination string
srcThe source string
nThe size of the string
Returns
char* The destination string
Author
Nicolas TORO