version 1.165, 2003/01/23 15:06:49
|
version 1.166, 2003/02/20 17:15:23
|
Line 798 ThotBool IsImageType (const char *type)
|
Line 798 ThotBool IsImageType (const char *type)
|
temptype[i] = tolower (temptype[i]); |
temptype[i] = tolower (temptype[i]); |
i++; |
i++; |
} |
} |
if (!strcmp (temptype, "gif") || !strcmp (temptype, "x-xbitmap") || |
if (!strncmp (temptype, "image/", sizeof ("image/") - 1)) |
!strcmp (temptype, "x-xpixmap") || !strcmp (temptype, "jpeg") || |
i = sizeof ("image/") - 1; |
!strcmp (temptype, "png")) |
else |
|
i = 0; |
|
if (!strcmp (&temptype[i], "gif") || !strcmp (&temptype[i], "x-xbitmap") || |
|
!strcmp (&temptype[i], "x-xpixmap") || !strcmp (&temptype[i], "jpeg") || |
|
!strcmp (&temptype[i], "png")) |
return (TRUE); |
return (TRUE); |
return (FALSE); |
return (FALSE); |
} |
} |