Ziron Library Files
right now there is no real documentation on what functions are available inside the library files and their usage... so when i get time i will post in this thread, different functions and their usage, if you want to ask about a specific function then please start a new thread in Source Help section, you will not be able to reply to this thread.
ok to start off with we will look at the most recent procedure addition "strFold" which is inside the "strings.zir" library file.
strFold
strFold will collapse a string by x amount of characters, it takes 2 parameters, the first is the string buffer, and the second is the length you want to collapse by. Lets take a look:
program WIN32CUI 'test';
#include 'strings.zir';
#include 'console.zir'; //strings is included in console.zir anyway but i've added it above for reference.
char buf[32];
strAppend(@buf, 'Command 1$Command 2$', 32);
//Here you could process the buf string to the deliminator in this sample.
print('My String: "', @buf, '"\r\n');
strFold(@buf, 10); // <<<<<<<<<<<<<<<<<<<<
//and so on for command 2
print('My String: "', @buf, '"\r\n');
wait_key(nil);
ExitProcess(0);
the output would be as so:
Command 1$Command 2$ Command 2$
notice the first 10 characters are folded and the rest of the buffer has now moved to the start - making way for more appends (which we will take a look at next thread)
more functions will be documented in this thread at later times/dates :)