On Fri, May 29, 2026 at 1:00 PM Jim Hall <[email protected]> wrote:
>
[..]
>
> By "the case sensitive stuff," if you mean how to compare two strings
> while ignoring case, you can use strcasecmp() in Open Watcom C. Here's
> a demo program:
>
> #include <stdio.h>
> #include <string.h> /* strcmp */
> #include <strings.h> /* strcasecmp - Open Watcom C */
>
> int main()
> {
>   printf("strcmp: ABC & abc = %d\n", strcmp("ABC","abc"));
>   printf("strcasecmp: ABC & abc = %d\n", strcasecmp("ABC","abc"));
>
>   return 0;
> }
>
[..]

Just because I like to use BCC sometimes, I checked - strcasecmp()
exists in BCC too. The above sample program compiles fine on BCC on
FreeDOS, too. :-)


On Fri, May 29, 2026 at 1:00 PM Jim Hall <[email protected]> wrote:
>
> On Thu, May 28, 2026 at 6:23 PM victoria crenshaw via Freedos-devel
> <[email protected]> wrote:
> >
> [..]
> >
> > for Jerome i need to do a voice call to add in the error levels, the ctrl+c 
> > stuff, and the case sensitive stuff with you! :D when your free in June. I 
> > am not available for a bit because i got an event named VCFSW to go to and 
> > table at! :D
> >
>
>
> By "the case sensitive stuff," if you mean how to compare two strings
> while ignoring case, you can use strcasecmp() in Open Watcom C. Here's
> a demo program:
>
> #include <stdio.h>
> #include <string.h> /* strcmp */
> #include <strings.h> /* strcasecmp - Open Watcom C */
>
> int main()
> {
>   printf("strcmp: ABC & abc = %d\n", strcmp("ABC","abc"));
>   printf("strcasecmp: ABC & abc = %d\n", strcasecmp("ABC","abc"));
>
>   return 0;
> }
>
>
> In Open Watcom C, you can also use _stricmp() which is the same
> function, but included by <string.h>. The stricmp() function is
> deprecated, same for strcmpi(), and you should use _stricmp() instead.
>
>
> In Borland, the function is stricmp() or strcmpi() -- they are the
> same function, but strcmpi() is actually a macro to stricmp().


_______________________________________________
Freedos-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/freedos-devel

Reply via email to