[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Using strcasecmp in xterm.c
From: |
Kenichi Handa |
Subject: |
Re: Using strcasecmp in xterm.c |
Date: |
Thu, 07 Dec 2006 20:16:41 +0900 |
User-agent: |
SEMI/1.14.3 (Ushinoya) FLIM/1.14.2 (Yagi-Nishiguchi) APEL/10.2 Emacs/22.0.91 (i686-pc-linux-gnu) MULE/5.0 (SAKAKI) |
In article <address@hidden>, address@hidden (Kim F. Storm) writes:
> In xterm.c, we use strcasecmp here:
> struct font_info *
> x_query_font (f, fontname)
> struct frame *f;
> register char *fontname;
> {
> struct x_display_info *dpyinfo = FRAME_X_DISPLAY_INFO (f);
> int i;
> for (i = 0; i < dpyinfo->n_fonts; i++)
> if (dpyinfo->font_table[i].name
> && (!strcasecmp (dpyinfo->font_table[i].name, fontname)
> || !strcasecmp (dpyinfo->font_table[i].full_name, fontname)))
> return (dpyinfo->font_table + i);
> return NULL;
> }
> Shouldn't this use xstricmp which is specifically defined to compare
> fontnames according to the comment in xfaces.c ?
What is the difference between xstricmp and strcasecmp?
---
Kenichi Handa
address@hidden