UGN Security Forums
My ProfileMember DirectoryLogin
Search our ForumsView our FAQView our Site Rules
View our CalendarView our Active TopicsGo to our Main Page

UGN Security Store
 

Network Sites UGN Security, The GoNix Initiative, Elite Web Gamers, Back of the Web, EveryDay Helper, VNC Web Design & Development
Our Sponsors
Sponsor Advertisements help keep UGN Security Online.



Sponsor Advertisements help keep UGN Security Online.

Want to earn prizes for clicking online advertisements? Join Rewards1.com.
Latest Postings
Latest Reviews
Topic Options
Rate This Topic
#17302 - 09/27/03 04:22 PM help please..
Agent_E Offline
Junior Member

Registered: 09/27/03
Posts: 1
Loc: somewhere in israel
help !
im getting a parse error at the 11 line before the ] token (using dev-cpp) !
I was trying playing with the code but nothing worked !
please help me ! explain how to use strcmp once and for all ! 10x

the code :
http://www.sourcecode.no/pastebin/en/index.php?page=show&id=2778&key=y9g4xqnp0

Top
Our Sponsors
Sponsor Advertisements help keep UGN Security Online.



Sponsor Advertisements help keep UGN Security Online.
#17303 - 09/28/03 02:51 AM Re: help please..
SilentRage Offline
DollarDNS Owner

Registered: 03/04/02
Posts: 1273
Loc: OH, USA
Change the following line:

if(strcmp (r[35],b[]!=0))

To

if(strcmp(r, b) != 0)
_________________________
Domain Registration, Hosting, Management
http://www.dollardns.net

Top
#17304 - 09/28/03 05:21 AM Re: help please..
Digital Geek Offline
UGN Super Poster

Registered: 09/18/02
Posts: 553
Loc: Cluj-Napoca, Romania
strcmp performs a case-sensitive comparison of the two argument strings. strcmp(arg1,arg2) returns a number.

There are three cases :

1. If is lexicographically less than, the `strcmp()' returns a negative number.
2. If the two strings are identical, `strcmp()' returns zero.
3. Otherwise, `strcmp()' returns a positive number.

So in your case, like SilentRage said, you have to test if strcmp(r,b) !=0

Peace !

Top



Featured Member
Registered: 03/02/02
Posts: 134
Forum Stats
2198 Members
46 Forums
24860 Topics
60030 Posts

Max Online: 1567 @ 04/25/10 10:20 AM
Top Posters
UGN Security 18021
Gremelin 7192
§intå× 3255
SilentRage 1273
Ice 1146
pergesu 1136
Infinite 1041
jonconley 955
Girlie 908
unreal 860
Newest Members
Selex, baird, colin, mwilliams1586, kuriousity
2198 Registered Users
Who's Online
0 registered (), 351 Guests and 222 Spiders online.
Key: Admin, Global Mod, Mod
Latest News


Donate
  Get Firefox!
Get FireFox!