stricmp() versus strcasecmp(

A

ahso

Hi
i've several functions like:

if (stricmp (p, ".PBM") == 0) {

How should i convert them for Linux?
Many thanks
Michael Sgier
 
A

ahso

Many thanks now I've something similar:

//---Convert texture name in upper case --Compute texture type
------
_strupr_s(tn,TC_TEXTURE_NAME_DIM);

strupr....on Linux?
Many thanks again
Michael
 
B

BGB / cr88192

ahso said:
Hi
i've several functions like:

if (stricmp (p, ".PBM") == 0) {

How should i convert them for Linux?

common ways:
write your own;
use macros to replace between stricmp and strcasecmp as needed...
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

ifdef 1
atan2; asin 5
friends heredity 5
Compiler errors 11
DWORD and bool to binary 10
Filter sober in c++ don't pass test 0
stricmp 2
Scientic Notation Program 5

Members online

No members online now.

Forum statistics

Threads
473,995
Messages
2,570,236
Members
46,821
Latest member
AleidaSchi

Latest Threads

Top