AF:
NF:0
PS:10
SRH:1
SFN:
DSR:
MID:<20070419094929.0d8163f3@ripper.onstor.net>
CFG:
PT:0
S:andy.sharp@onstor.com
RQ:
SSV:onstor-exch02.onstor.net
NSV:
SSH:
R:<maxim.kozlovsky@onstor.com>
MAID:1
X-Sylpheed-Privacy-System:
X-Sylpheed-Sign:0
SCF:#mh/Mailbox/sent
RMID:#imap/andys@onstor.net@onstor-exch02.onstor.net/INBOX	0	BB375AF679D4A34E9CA8DFA650E2B04E0351BBD7@onstor-exch02.onstor.net
X-Sylpheed-End-Special-Headers: 1
Date: Thu, 19 Apr 2007 09:49:46 -0700
From: Andrew Sharp <andy.sharp@onstor.com>
To: "Maxim Kozlovsky" <maxim.kozlovsky@onstor.com>
Subject: Re: isblank works for me
Message-ID: <20070419094946.69a8e9e0@ripper.onstor.net>
In-Reply-To: <BB375AF679D4A34E9CA8DFA650E2B04E0351BBD7@onstor-exch02.onstor.net>
References: <20070418192601.564f4e99@ripper.onstor.net>
	<BB375AF679D4A34E9CA8DFA650E2B04E0351BBD7@onstor-exch02.onstor.net>
Organization: Onstor
X-Mailer: Sylpheed-Claws 2.6.0 (GTK+ 2.8.20; x86_64-pc-linux-gnu)
Mime-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit



Includes/linux.h:

#define isblank(B) isspace(B)

Doing it right means you don't have to mess with it at all the next 20
times it occurs in our code.

Thanks,


a


On Thu, 19 Apr 2007 07:43:18 -0700 "Maxim Kozlovsky"
<maxim.kozlovsky@onstor.com> wrote:

> Yes - -Wall option.
> 
> -----Original Message-----
> From: Andy Sharp 
> Sent: Wednesday, April 18, 2007 7:26 PM
> To: Maxim Kozlovsky
> Subject: isblank works for me
> 
> The following program:
> 
> #include <stdio.h>
> #include <ctype.h>
> 
> main() {
> 
> 	char *foo = "asdf adf asdf adsf sadf";
> 	int i;
> 
> 	for (; *foo; foo++) {
> 		if (!isblank(*foo)) {
> 			putchar(*foo);
> 		}
> 	}
> 
> 	printf("\n");
> }
> 
> compiles just fine for me:
> 
> ripper:~$ mipsel-linux-gnu-gcc -O2 isblank.c -o isblank
> ripper:~$ file isblank
> isblank: ELF 32-bit LSB executable, MIPS, MIPS-I version 1 (SYSV), for
> GNU/Linux 2.4.1, dynamically linked (uses shared libs), for GNU/Linux
> 2.4.1, not stripped
> ripper:~$ 
> 
> 
> Am I missing something?
> 
> Cheers,
> 
> a
