delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/05/03/06:58:41

Date: Mon, 3 May 1999 13:55:11 +0300 (IDT)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
X-Sender: eliz AT is
To: Daniel <entropic AT mpx DOT com DOT au>
cc: djgpp AT delorie DOT com
Subject: Re: bug in "split"
In-Reply-To: <372D7D56.CE877544@mpx.com.au>
Message-ID: <Pine.SUN.3.91.990503135341.18068F-100000@is>
MIME-Version: 1.0
Reply-To: djgpp AT delorie DOT com
X-Mailing-List: djgpp AT delorie DOT com
X-Unsubscribes-To: listserv AT delorie DOT com

On Mon, 3 May 1999, Daniel wrote:

>    after more testing i realised it's my own silly fault.
> i was trying to enter non-integer sizes, eg: 1.1MB.

Yes, the argument must be an integer.  `split' uses `strtol' function to 
convert it to an int, and the conversion stops on the first character 
that isn't a digit.  So `split' never sees the "M" part.

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019