Gamestudio Links
Zorro Links
Newest Posts
What are you working on?
by rayp. 10/15/25 20:44
Help!
by VoroneTZ. 10/14/25 05:04
Zorro 2.70
by jcl. 10/13/25 09:01
ZorroGPT
by TipmyPip. 10/12/25 13:58
Sam Foster Sound | Experienced Game Composer for Hire
by titanicpiano14. 10/11/25 18:45
Reality Check results on my strategy
by dBc. 10/11/25 06:15
AUM Magazine
Latest Screens
Rocker`s Revenge
Stug 3 Stormartillery
Iljuschin 2
Galactic Strike X
Who's Online Now
1 registered members (AndrewAMD), 7,782 guests, and 2 spiders.
Key: Admin, Global Mod, Mod
Newest Members
joenxxx, Jota, krishna, DrissB, James168
19170 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 | 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