Aegis Support Board: StrStr or StrCmp - Aegis Support Board

Jump to content

ASB News! ASB 5.0 Beta V2 has now been released!. See here for more Info.

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

StrStr or StrCmp Is there any difference?

#1 User is offline   Riivaaja 

  • Newbie
  • Pip
  • Group: Members
  • Posts: 1
  • Joined: 08-April 09

Posted 08 April 2009 - 11:53 AM

Hello,
I would like to compare two variables containing strings: mystr and inputstr

var mystr = "blabla"
dlgwritestr


I have found three ways how to do that

1) simply
if (mystr == inputstr)


2) StrStr
var tmp = StrStr inputstr mystr
if (tmp == 1)


3) StrCmp
var tmp = StrCmp inputstr mystr
if (tmp == 1)


Are StrStr and StrCmp equivalent functions or not?
0

#2 User is offline   Kolkka 

  • Average Member
  • PipPipPipPip
  • Group: Members
  • Posts: 181
  • Joined: 07-August 03
  • Location:Mexico

Posted 14 April 2009 - 03:12 AM

strcmp
Compares one string to another.

strstr
Finds the first occurrence of a substring in another string.

that's on c, maybe it's the same in aegis
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users