Archive: strcspn - how to?


strcspn - how to?
How can I determine whether string A contains any character of string B?


So, you want to know if "abcd" contains any of "aefg" (a)?

-Stu


Exactly!
The problem is to determine whether password contains incorrect symbols like $-+ etc.


Ok I will write a function to do this for you.

-Stu


It will be really nice!
Thanks!


Here you go:
http://nsis.sourceforge.net/archive/...b.php?page=628

-Stu


Thanks a lot!


I read your PM. I wrote the other function up, and you can grab it on the same page:
http://nsis.sourceforge.net/archive/...b.php?page=628

Note that I removed some unnecessary Push's and Pop's from the first function, so you might want to update your copy of it.

-Stu


Cool, thanks!