|
|
#1 |
|
Member
Join Date: Oct 2004
Posts: 89
|
strcspn - how to?
How can I determine whether string A contains any character of string B?
|
|
|
|
|
|
#2 |
|
Moderator
Join Date: Nov 2002
Location: Shropshire, England
Posts: 6,887
|
So, you want to know if "abcd" contains any of "aefg" (a)?
-Stu |
|
|
|
|
|
#3 |
|
Member
Join Date: Oct 2004
Posts: 89
|
Exactly!
The problem is to determine whether password contains incorrect symbols like $-+ etc. Internet Messengers History and bookmarking tools - http://belkasoft.com |
|
|
|
|
|
#4 |
|
Moderator
Join Date: Nov 2002
Location: Shropshire, England
Posts: 6,887
|
Ok I will write a function to do this for you.
-Stu |
|
|
|
|
|
#5 |
|
Member
Join Date: Oct 2004
Posts: 89
|
It will be really nice!
Thanks! Internet Messengers History and bookmarking tools - http://belkasoft.com |
|
|
|
|
|
#6 |
|
Moderator
Join Date: Nov 2002
Location: Shropshire, England
Posts: 6,887
|
|
|
|
|
|
|
#7 |
|
Member
Join Date: Oct 2004
Posts: 89
|
Thanks a lot!
Internet Messengers History and bookmarking tools - http://belkasoft.com |
|
|
|
|
|
#8 |
|
Moderator
Join Date: Nov 2002
Location: Shropshire, England
Posts: 6,887
|
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 |
|
|
|
|
|
#9 |
|
Member
Join Date: Oct 2004
Posts: 89
|
Cool, thanks!
Internet Messengers History and bookmarking tools - http://belkasoft.com |
|
|
|
![]() |
|
|||||||
| Thread Tools | Search this Thread |
| Display Modes | |
|
|