[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: weird ftp behaviour
- To: Diego <iastrubn(at-nospam)actcom.co.il>
- Subject: Re: weird ftp behaviour
- From: Adi Stav <stav(at-nospam)actcom.co.il>
- Date: Sat, 28 Jul 2001 09:54:57 +0300
- Cc: Ariel Biener <ariel(at-nospam)fireball.tau.ac.il>, Alon Barzilai <alon(at-nospam)skyline.co.il>, Israeli Linux Mailing List <linux-il(at-nospam)linux.org.il>
- Delivered-To: linux.org.il-linux-il@linux.org.il
- In-Reply-To: <01072623191900.00728@localhost.localdomain>; from iastrubn@actcom.co.il on Thu, Jul 26, 2001 at 11:19:19PM +0300
- Mail-Followup-To: Diego <iastrubn@actcom.co.il>,Ariel Biener <ariel@fireball.tau.ac.il>,Alon Barzilai <alon@skyline.co.il>,Israeli Linux Mailing List <linux-il@linux.org.il>
- References: <Pine.LNX.4.21_heb2.09.0107241711570.1379-100000@fireball.tau.ac.il> <01072623191900.00728@localhost.localdomain>
- Sender: Adi Stav <adi(at-nospam)stav.org.il>
- Sender: linux-il-bounce(at-nospam)cs.huji.ac.il
- User-Agent: Mutt/1.2.5i
On Thu, Jul 26, 2001 at 11:19:19PM +0300, Diego wrote:
> I have a question:
> linux is a 32bit OS, on win32 and dos32 (dos4gw, gjdpp progs etc) the stack
> is also 32bit size. which means that all passed parameters are 32bit size =
> long. This should not matter if also linux (gcc/glibc whatever) works that
> way. Can somebody explain this to me?
If you explicitly declare a variable as short, then values assigned
to it will be truncated by the compiler. This has nothing to do with
the operating system, this is the definition of C. The compiler does
not attempt to get more free bits for your variable that you didn't
ask for. If you want to use the architecture's largest native type,
use int.
=================================================================
To unsubscribe, send mail to linux-il-request@linux.org.il with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail linux-il-request@linux.org.il