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
September
Su M Tu W Th F Sa
1 2 3 4 5 6
7 8 9 10 11 12 13
14 15 16 17 18 19 20
21 22 23 24 25 26 27
28 29 30
Sponsored Links
Latest Postings
The History Thread...
by Gremelin
Yesterday at 09:42 AM
Doom 3
by Cyrez
09/11/14 08:58 PM
Amazon Gift Card Generator/KeyGen?te
by Gecko666
08/22/14 09:21 AM
Latest Reviews
Topic Options
Rate This Topic
#17302 - 09/27/03 08:22 AM 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
Sponsored Links
      
#17303 - 09/27/03 06:51 PM 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/27/03 09:21 PM 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: 02/28/02
Posts: 7193
Forum Stats
2148 Members
46 Forums
34501 Topics
69671 Posts

Max Online: 1567 @ 04/25/10 02:20 AM
Top Posters
UGN Security 27663
Gremelin 7193
§intå× 3255
SilentRage 1273
Ice 1146
pergesu 1136
Infinite 1041
jonconley 955
Girlie 908
unreal 860
Newest Members
Tim050, Gecko666, defghi795767, Devo60, ali
2148 Registered Users
Who's Online
1 registered (Cyrez), 357 Guests and 323 Spiders online.
Key: Admin, Global Mod, Mod
Latest News


Donate
  Get Firefox!
Get FireFox!