1994 1995 1996 1997 1998 1999 2000 2001 2002 2003 2004 2005 <2006> 2007 2008 2009 2010 2011 2012 2013 2014 2015 2016 2017 2018 2019 2020 2021 2022 2023 2024 | Index | 1994 1995 1996 1997 1998 1999 2000 2001 2002 2003 2004 2005 <2006> 2007 2008 2009 2010 2011 2012 2013 2014 2015 2016 2017 2018 2019 2020 2021 2022 2023 2024 |
<== Date ==> | <== Thread ==> |
---|
Subject: | Re: mallocMustSucceed( 0 ) non-portable |
From: | Eric Norum <[email protected]> |
To: | Till Straumann <[email protected]> |
Cc: | EPICS Tech-Talk <[email protected]>, Sheng Peng <[email protected]> |
Date: | Mon, 30 Jan 2006 18:25:36 -0600 |
Should callocMustSucceed accept a 0 count, too? e.g. replace if(mem==0) { with if(mem==0 && size!=0 && count!= 0) { Of course this means that callocMustSucceed and mallocMustSucceed can return a NULL pointer, which they currently never do..... On Jan 30, 2006, at 5:58 PM, Till Straumann wrote:
|