KamikazeSripterul
Well-known member
- Joined
- Jun 30, 2019
- Messages
- 353
- Reaction score
- 23
I want to make an input dialog (style 1) in which a command will be typed. How much memory do i need to allocate in order to store that command in a .ini file?
0C17: 1@ = strlen 0@ // gives length of string 0@
// requires alloc however
But you know without allocation you can't get strings which mean you can't use strlenEvery character in a string is 1 byte so you can do the string length. Most people do 255 bytes as default anyway don't think it matters unless you're wasting thousands of bytes.
Code:0C17: 1@ = strlen 0@ // gives length of string 0@