forked from starnakin/IronGOLEM
Add wiki/strcpy
This commit is contained in:
parent
78bc62c044
commit
2421c51116
14
wiki/strcpy
Normal file
14
wiki/strcpy
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
# STRCPY
|
||||||
|
Strcpy (string copy) is a function that takes two chars lists as a parameter and write the second in the first (like strcpy in C)
|
||||||
|
|
||||||
|
## params
|
||||||
|
1. chars list
|
||||||
|
2. chars list
|
||||||
|
|
||||||
|
## example
|
||||||
|
```
|
||||||
|
strcpy("y", "o") "y" => "o"
|
||||||
|
strcpy("y", "") "y" => ""
|
||||||
|
strcpy("", "o") "" => "o"
|
||||||
|
strcpy("hello ", "world!") => "world!"
|
||||||
|
```
|
Loading…
Reference in New Issue
Block a user