Gamestudio Links
Zorro Links
Newest Posts
New FXCM FIX Plugin
by flink. 06/04/24 07:30
AlpacaZorroPlugin v1.3.0 Released
by kzhao. 05/22/24 13:41
Free Live Data for Zorro with Paper Trading?
by AbrahamR. 05/18/24 13:28
Change chart colours
by 7th_zorro. 05/11/24 09:25
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
2 registered members (Akow, AndrewAMD), 1,640 guests, and 13 spiders.
Key: Admin, Global Mod, Mod
Newest Members
AemStones, LucasJoshua, Baklazhan, Hanky27, firatv
19058 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
String comparison #340985
09/09/10 11:22
09/09/10 11:22
Joined: Feb 2010
Posts: 320
TANA/Madagascar
3dgs_snake Offline OP
Senior Member
3dgs_snake  Offline OP
Senior Member

Joined: Feb 2010
Posts: 320
TANA/Madagascar
Is there an already made string comparison function (that works with STRING pointer or char pointer/array)? I really need string comparison but unfortunately the lite-c version of str_cmp() can't do it (It returns either 1 or 0, not like the c/c++ counterpart). I can create the function myself but I don't really want to reinvent the wheel smile .

Thanks for any response.

Re: String comparison [Re: 3dgs_snake] #340988
09/09/10 11:52
09/09/10 11:52
Joined: Jan 2004
Posts: 3,023
The Netherlands
Helghast Offline
Expert
Helghast  Offline
Expert

Joined: Jan 2004
Posts: 3,023
The Netherlands
i always work with str_cmpi, and they work fine for me.
Can you explain what exactly you want/need, because it's not very clear to me what you need it for?

regards,


Formerly known as dennis_fantasy
Portfolio - http://www.designorhea.com/
Project - http://randomchance.cherrygames.org/
Re: String comparison [Re: 3dgs_snake] #340989
09/09/10 11:53
09/09/10 11:53
Joined: Feb 2010
Posts: 320
TANA/Madagascar
3dgs_snake Offline OP
Senior Member
3dgs_snake  Offline OP
Senior Member

Joined: Feb 2010
Posts: 320
TANA/Madagascar
Really sorry, I discovered that i need to use strcmp (not str_cmp). I thought that th c/c++ strcmp was replaced by the str_cmp. blush (I promise next time I will do some search before posting blush )

Thanks to all.

Re: String comparison [Re: Helghast] #340991
09/09/10 12:02
09/09/10 12:02
Joined: Feb 2010
Posts: 320
TANA/Madagascar
3dgs_snake Offline OP
Senior Member
3dgs_snake  Offline OP
Senior Member

Joined: Feb 2010
Posts: 320
TANA/Madagascar
Yesterday, i wanted to create a graphical font from ttf fonts installed on windows. Now, I have the font list but I want to sort them out before putting them in a list so the font can be changed before saving into a file. I store the fonts name inside an array and I have already implemented a quicksort to sort the array, that's why i need the string comparison smile


Moderated by  HeelX, Lukas, rayp, Rei_Ayanami, Superku, Tobias, TWO, VeT 

Gamestudio download | chip programmers | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1