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
January
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 31
Sponsored Links
Latest Postings
【煦色韶华问佛】
by lmnopq127978
Today at 03:38 AM
【听,梦里雪落的声音】
by lmnopq127978
Today at 03:37 AM
那天,她留下了眼泪
by lmnopq127978
Yesterday at 04:09 AM
繁荣如锦,似梦似幻
by lmnopq127978
Yesterday at 04:08 AM
爱笑
by lmnopq127978
Yesterday at 04:07 AM
江南小镇
by lmnopq127978
Yesterday at 04:07 AM
癫痫病能够吃油炸食品吗
by lmnopq127978
Yesterday at 01:16 AM
癫痫病的饮食应当留神哪些
by lmnopq127978
01/25/15 07:09 PM
Latest Reviews
Topic Options
Rate This Topic
#17302 - 09/27/03 11: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 09: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/28/03 12: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: 02/28/02
Posts: 7193
Forum Stats
2153 Members
46 Forums
36654 Topics
71824 Posts

Max Online: 1567 @ 04/25/10 05:20 AM
Top Posters
UGN Security 29807
Gremelin 7193
§intå× 3255
SilentRage 1273
Ice 1146
pergesu 1136
Infinite 1041
jonconley 955
Girlie 908
unreal 860
Newest Members
claralobo, cdefgh368568, HushHush, golqm, Tim050
2152 Registered Users
Who's Online
1 registered (lmnopq127978), 258 Guests and 238 Spiders online.
Key: Admin, Global Mod, Mod
Latest News


Donate
  Get Firefox!
Get FireFox!