Click here to Skip to main content
15,888,984 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.

 
Generalmalloc and calloc revisited - oh hum but pay attention when using them Pin
jmaida19-Dec-22 16:29
jmaida19-Dec-22 16:29 
GeneralRe: malloc and calloc revisited - oh hum but pay attention when using them Pin
k505419-Dec-22 18:05
mvek505419-Dec-22 18:05 
GeneralRe: malloc and calloc revisited - oh hum but pay attention when using them Pin
jmaida19-Dec-22 18:26
jmaida19-Dec-22 18:26 
GeneralRe: malloc and calloc revisited - oh hum but pay attention when using them Pin
den2k8819-Dec-22 20:59
professionalden2k8819-Dec-22 20:59 
RantRe: malloc and calloc revisited - oh hum but pay attention when using them Pin
Daniel Pfeffer19-Dec-22 21:13
professionalDaniel Pfeffer19-Dec-22 21:13 
GeneralRe: malloc and calloc revisited - oh hum but pay attention when using them Pin
jmaida20-Dec-22 6:05
jmaida20-Dec-22 6:05 
GeneralRe: malloc and calloc revisited - oh hum but pay attention when using them Pin
Bruno van Dooren20-Dec-22 11:04
mvaBruno van Dooren20-Dec-22 11:04 
GeneralRe: malloc and calloc revisited - oh hum but pay attention when using them Pin
jmaida20-Dec-22 11:59
jmaida20-Dec-22 11:59 
I understand.
I am not expecting compiler to do something it is not programmed to do.
I have bumped into compiler issues for years, especially optimizing features.
Sometimes they change and you have to adapt.
I was just taking issue with the malloc(0) return.
But, I have a way around.
"A little time, a little trouble, your better day"
Badfinger

GeneralRe: malloc and calloc revisited - oh hum but pay attention when using them Pin
jschell20-Dec-22 13:56
jschell20-Dec-22 13:56 
GeneralRe: malloc and calloc revisited - oh hum but pay attention when using them Pin
Bruno van Dooren20-Dec-22 19:45
mvaBruno van Dooren20-Dec-22 19:45 
GeneralRe: malloc and calloc revisited - oh hum but pay attention when using them Pin
jschell29-Dec-22 11:15
jschell29-Dec-22 11:15 
GeneralRe: malloc and calloc revisited - oh hum but pay attention when using them Pin
Bruno van Dooren30-Dec-22 8:08
mvaBruno van Dooren30-Dec-22 8:08 
GeneralRe: malloc and calloc revisited - oh hum but pay attention when using them Pin
jschell2-Jan-23 13:17
jschell2-Jan-23 13:17 
GeneralRe: malloc and calloc revisited - oh hum but pay attention when using them Pin
Bruno van Dooren2-Jan-23 13:27
mvaBruno van Dooren2-Jan-23 13:27 
GeneralRe: malloc and calloc revisited - oh hum but pay attention when using them Pin
jmaida20-Dec-22 7:06
jmaida20-Dec-22 7:06 
GeneralRe: malloc and calloc revisited - oh hum but pay attention when using them Pin
k505419-Dec-22 18:14
mvek505419-Dec-22 18:14 
GeneralRe: malloc and calloc revisited - oh hum but pay attention when using them Pin
jmaida19-Dec-22 18:28
jmaida19-Dec-22 18:28 
GeneralRe: malloc and calloc revisited - oh hum but pay attention when using them Pin
jschell20-Dec-22 13:57
jschell20-Dec-22 13:57 
GeneralRe: malloc and calloc revisited - oh hum but pay attention when using them Pin
jmaida20-Dec-22 14:04
jmaida20-Dec-22 14:04 
GeneralRe: malloc and calloc revisited - oh hum but pay attention when using them Pin
jmaida20-Dec-22 14:11
jmaida20-Dec-22 14:11 
GeneralRe: malloc and calloc revisited - oh hum but pay attention when using them Pin
jmaida20-Dec-22 15:21
jmaida20-Dec-22 15:21 
GeneralRe: malloc and calloc revisited - oh hum but pay attention when using them Pin
jmaida19-Dec-22 18:28
jmaida19-Dec-22 18:28 
GeneralRe: malloc and calloc revisited - oh hum but pay attention when using them Pin
jmaida19-Dec-22 18:31
jmaida19-Dec-22 18:31 
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 

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.