Gamestudio Links
Zorro Links
Newest Posts
Stooq now requires an API key
by k_ivan. 06/10/26 14:39
Z9 getting Error 058
by k_ivan. 06/10/26 14:38
ZorroGPT
by TipmyPip. 06/10/26 13:07
Z12 live performance
by alx. 06/09/26 20:42
Lapsa's very own thread
by Lapsa. 06/08/26 22:41
Zorro 3.01 recoded MMI function issue
by TipmyPip. 06/04/26 05:44
SGT_FW
by Aku_Aku. 05/31/26 11:05
Issues resuming trades on Demo account
by Martin_HH. 05/22/26 13:31
AUM Magazine
Latest Screens
Dorifto samurai
Shadow 2
Rocker`s Revenge
Stug 3 Stormartillery
Who's Online Now
5 registered members (alx, TipmyPip, AndrewAMD, Quad, 1 invisible), 3,180 guests, and 3 spiders.
Key: Admin, Global Mod, Mod
Newest Members
Seraphinang, Koti, curry, DeepxKalsi, Samed
19219 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