[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: C file recoginzed as image file
From: |
David Kastrup |
Subject: |
Re: C file recoginzed as image file |
Date: |
Mon, 08 Jan 2007 21:39:09 +0100 |
User-agent: |
Gnus/5.11 (Gnus v5.11) Emacs/22.0.92 (gnu/linux) |
"Juanma Barranquero" <address@hidden> writes:
> On 1/8/07, Stefan Monnier <address@hidden> wrote:
>
>> After all, an inconsistently named file is generally
>> a sign that there's something wrong, so it's good to prompt the user
>> about it.
>
> That's a bit of second-guessing. We are not in the business of knowing
> why someone uses non-default file names. And let's not forget that a
> file with a .c extension containing a GIF image is absolutely,
> non-ambiguously a GIF, whatever the .c may seem to imply.
GIF89a(char c)
{
return c>'0';
}
#include <stdio.h>
main(int ac, char **av)
{
while (++av,--ac > 0)
putchar("yn" [GIF89a(**av)]);
putchar('\n');
return;
}
--
David Kastrup, Kriemhildstr. 15, 44793 Bochum
- Re: C file recoginzed as image file, (continued)
- Re: C file recoginzed as image file, Eli Zaretskii, 2007/01/09
- Re: C file recoginzed as image file, Lennart Borgman (gmail), 2007/01/09
- Re: C file recoginzed as image file, Chris Moore, 2007/01/09
- Re: C file recoginzed as image file, Lennart Borgman (gmail), 2007/01/09
- Re: C file recoginzed as image file, Chris Moore, 2007/01/10
- Re: C file recoginzed as image file, Lennart Borgman (gmail), 2007/01/10
- Re: C file recoginzed as image file, Richard Stallman, 2007/01/09
- Re: C file recoginzed as image file, Lennart Borgman (gmail), 2007/01/09
- Re: C file recoginzed as image file, Stephen J. Turnbull, 2007/01/08
- Re: C file recoginzed as image file, Juanma Barranquero, 2007/01/08
- Re: C file recoginzed as image file,
David Kastrup <=
- Re: C file recoginzed as image file, Juanma Barranquero, 2007/01/08
- Re: C file recoginzed as image file, David Kastrup, 2007/01/08
- Re: C file recoginzed as image file, Juanma Barranquero, 2007/01/08
- Re: C file recoginzed as image file, David Kastrup, 2007/01/09
- Re: C file recoginzed as image file, Juanma Barranquero, 2007/01/09
- Re: C file recoginzed as image file, Chris Moore, 2007/01/09
- Re: C file recoginzed as image file, Juanma Barranquero, 2007/01/09
- Re: C file recoginzed as image file, Stefan Monnier, 2007/01/09
- Re: C file recoginzed as image file, Juanma Barranquero, 2007/01/09
- Re: C file recoginzed as image file, Stefan Monnier, 2007/01/09