Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > C++ > stricmp

Reply
Thread Tools

stricmp

 
 
Michael Sgier
Guest
Posts: n/a
 
      07-06-2006
Hi
in linux i get the error
stricmp not found or something like that.
i only find strcmp in /usr/include
what is the difference? can i use that? or what do i need to do with
the above error?
Thanks
Michael


 
Reply With Quote
 
 
 
 
Victor Bazarov
Guest
Posts: n/a
 
      07-06-2006
Michael Sgier wrote:
> in linux i get the error
> stricmp not found or something like that.


There is no such standard function.

> i only find strcmp in /usr/include
> what is the difference?


'strcmp' is a standard function, 'stricmp' is not.

> can i use that? or what do i need to do with
> the above error?


You need to implement it yourself or use some other function
that can work as a replacement.

V
--
Please remove capital 'A's when replying by e-mail
I do not respond to top-posted replies, please don't ask


 
Reply With Quote
 
 
 
 
Walt Stoneburner
Guest
Posts: n/a
 
      07-07-2006
Try using strcasecmp() instead of stricmp() and see if that solves your
problem.
-wls

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
stricmp() versus strcasecmp( ahso C++ 4 11-25-2009 03:29 PM
Need to implement strdup, strnicmp and stricmp jamihuq C Programming 18 06-30-2006 07:42 PM
comparing two strcasecmp (stricmp) implementations William Krick C Programming 88 12-08-2005 11:53 PM
question about string compare stricmp xuatla C++ 11 09-26-2005 03:04 AM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57