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, Elite Web Gamers, Back of the Web, EveryDay Helper, VNC Web Design & Development
Our Sponsors

Latest Postings
Owning Servers
by Gizmo
08/25/08 10:21 AM
my old account still exists!
by Gizmo
08/19/08 02:27 PM
Burger King gone Wild!
by Gizmo
08/08/08 11:42 PM
PDX 2600
by rbcp
08/07/08 12:46 AM
The Pirate Bay- shut down?
by ZER0_DECEPTION
08/05/08 09:07 PM
Windows Events for Changing Access rights to a folder or a File
by Gizmo
08/05/08 12:32 PM
question about IE and CSS
by §intå×
08/04/08 08:51 PM
Server
by Gizmo
08/01/08 01:29 AM
Topic Options
#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
Our Sponsors
Sponsor Our Sponsors

Top  
#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: 522
Loc: Madrid, Spain
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



Forum Stats
6911 Members
44 Forums
10460 Topics
45198 Posts

Max Online: 677 @ 06/30/07 10:06 PM
Top Posters
Gizmo 6929
UGN Security 3436
§intå× 3250
IceMyst 1449
SilentRage 1273
Ice 1146
pergesu 1134
Infinite 1039
jonconley 954
Girlie 903
Newest Members
red queen, byopc, cybermox, NiPah, mcscrwdy25
6911 Registered Users
Who's Online
0 Registered (), 9 Guests and 4 Spiders online.
Key: Admin, Global Mod, Mod
Latest News
Update Humpday - Aug 27, 2008
by Gizmo
Yesterday at 12:58 AM
Update Humpday - Aug 20, 2008
by Gizmo
08/21/08 01:48 AM
Update Humpday - Aug 14, 2008
by Gizmo
08/14/08 08:33 AM
Update Humpday - Aug 06, 2008
by Gizmo
08/06/08 08:05 AM
Update Humpday - Jul 30th, 2008
by Gizmo
07/31/08 11:17 AM


Donate

Get the Google FireFox Toolbar
Get Firefox!
Get FireFox!