Stridx/strxidx usage

Posted By: Zheka

Stridx/strxidx usage - 01/28/18 10:27

Hello, everybody,

would greatly appreciate a short piece of code demonstrating correct intended usage of stridx/strxidx.

Thank you in advance.
Posted By: jcl

Re: Stridx/strxidx usage - 01/29/18 11:03

It simply converts a string to a number and the number back to the string.

int a = stridx("EUR/USD"), b = stridx("USD/JPY");
printf("%i %i %s %s",a,b,strxid(a),strxid(b));
Posted By: Zheka

Re: Stridx/strxidx usage - 01/29/18 11:20

Ok, thanks.
And then this can be used as a "named" handle for a dataset, right?
Posted By: jcl

Re: Stridx/strxidx usage - 01/29/18 11:28

For instance, yes.
© 2024 lite-C Forums