Click here to Skip to main content
15,886,035 members

Welcome to the Lounge

   

For discussing anything related to a software developer's life but is not for programming questions. Got a programming question?

The Lounge is rated Safe For Work. If you're about to post something inappropriate for a shared office environment, then don't post it. No ads, no abuse, and no programming questions. Trolling, (political, climate, religious or whatever) will result in your account being removed.

 
GeneralRe: malloc and calloc revisited - oh hum but pay attention when using them Pin
honey the codewitch19-Dec-22 19:00
mvahoney the codewitch19-Dec-22 19:00 
GeneralRe: malloc and calloc revisited - oh hum but pay attention when using them Pin
Peter_in_278019-Dec-22 20:00
professionalPeter_in_278019-Dec-22 20:00 
GeneralRe: malloc and calloc revisited - oh hum but pay attention when using them Pin
CPallini20-Dec-22 21:05
mveCPallini20-Dec-22 21:05 
GeneralRe: malloc and calloc revisited - oh hum but pay attention when using them Pin
honey the codewitch20-Dec-22 23:30
mvahoney the codewitch20-Dec-22 23:30 
GeneralRe: malloc and calloc revisited - oh hum but pay attention when using them Pin
honey the codewitch19-Dec-22 18:58
mvahoney the codewitch19-Dec-22 18:58 
GeneralRe: malloc and calloc revisited - oh hum but pay attention when using them Pin
Daniel Pfeffer19-Dec-22 21:01
professionalDaniel Pfeffer19-Dec-22 21:01 
GeneralRe: malloc and calloc revisited - oh hum but pay attention when using them Pin
jmaida20-Dec-22 5:58
jmaida20-Dec-22 5:58 
GeneralRe: malloc and calloc revisited - oh hum but pay attention when using them Pin
k505420-Dec-22 7:52
mvek505420-Dec-22 7:52 
jmaida wrote:
Not returning NULL is the problem.


No it is not! The standard clearly says that malloc(0) may return a non null value. For some reason, you seem to think this is a problem. It's like arguing that an inch should be exactly 2.5 cm rather than 2.54. No. the standard says that an inch is 2.54 cm, and all your wishing it otherwise will not change anything. Deal with it. Or move on to some other (a)vocation.
Keep Calm and Carry On

GeneralRe: malloc and calloc revisited - oh hum but pay attention when using them Pin
jmaida20-Dec-22 10:13
jmaida20-Dec-22 10:13 
GeneralRe: malloc and calloc revisited - oh hum but pay attention when using them Pin
Bruno van Dooren20-Dec-22 11:08
mvaBruno van Dooren20-Dec-22 11:08 
GeneralRe: malloc and calloc revisited - oh hum but pay attention when using them Pin
jmaida20-Dec-22 12:00
jmaida20-Dec-22 12:00 
GeneralRe: malloc and calloc revisited - oh hum but pay attention when using them Pin
megaadam20-Dec-22 0:09
professionalmegaadam20-Dec-22 0:09 
GeneralRe: malloc and calloc revisited - oh hum but pay attention when using them Pin
Daniel Pfeffer20-Dec-22 6:37
professionalDaniel Pfeffer20-Dec-22 6:37 
GeneralRe: malloc and calloc revisited - oh hum but pay attention when using them Pin
megaadam20-Dec-22 6:55
professionalmegaadam20-Dec-22 6:55 
GeneralRe: malloc and calloc revisited - oh hum but pay attention when using them Pin
englebart21-Dec-22 5:15
professionalenglebart21-Dec-22 5:15 
GeneralRe: malloc and calloc revisited - oh hum but pay attention when using them Pin
jmaida21-Dec-22 14:06
jmaida21-Dec-22 14:06 
GeneralWordle 549 Pin
StarNamer@work19-Dec-22 13:37
professionalStarNamer@work19-Dec-22 13:37 
GeneralRe: Wordle 549 Pin
Amarnath S19-Dec-22 13:44
professionalAmarnath S19-Dec-22 13:44 
GeneralRe: Wordle 549 Pin
Shane010319-Dec-22 16:48
Shane010319-Dec-22 16:48 
GeneralRe: Wordle 549 Pin
Peter_in_278019-Dec-22 18:04
professionalPeter_in_278019-Dec-22 18:04 
GeneralRe: Wordle 549 Pin
Sander Rossel19-Dec-22 19:32
professionalSander Rossel19-Dec-22 19:32 
GeneralRe: Wordle 549 Pin
den2k8819-Dec-22 21:02
professionalden2k8819-Dec-22 21:02 
GeneralRe: Wordle 549 2/6 Pin
jmaida20-Dec-22 12:32
jmaida20-Dec-22 12:32 
GeneralRe: Wordle 549 Pin
OriginalGriff19-Dec-22 21:07
mveOriginalGriff19-Dec-22 21:07 
GeneralRe: Wordle 549 Pin
pkfox19-Dec-22 21:30
professionalpkfox19-Dec-22 21:30 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.