Add 'strlen'
28
strlen.md
Normal file
28
strlen.md
Normal file
@@ -0,0 +1,28 @@
|
|||||||
|
# strlen(str)
|
||||||
|
Ens torna el tamany de la cadena `str`.
|
||||||
|
|
||||||
|
### Paràmetres
|
||||||
|
|
||||||
|
`str`
|
||||||
|
La cadena de text de la que volem saber el tamany.
|
||||||
|
|
||||||
|
### Exemple
|
||||||
|
```
|
||||||
|
function init()
|
||||||
|
cls()
|
||||||
|
print(tostr(0),0,0)
|
||||||
|
print(tostr(8.4),0,1)
|
||||||
|
print(tostr(-65),0,2)
|
||||||
|
print(tostr(0xff),0,3)
|
||||||
|
|
||||||
|
print(0,0,5)
|
||||||
|
print(8.4,0,6)
|
||||||
|
print(-65,0,7)
|
||||||
|
print(0xff,0,8)
|
||||||
|
end
|
||||||
|
```
|
||||||
|
### Vore també
|
||||||
|
* [tostr(num)](tostr)
|
||||||
|
* [ascii(str, index)](ascii)
|
||||||
|
* [chr(num)](chr)
|
||||||
|
* [strlen(str)](strlen)
|
||||||
Reference in New Issue
Block a user