Click here to Skip to main content
15,887,812 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
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 
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 
Bruno van Dooren wrote:
I was referring to the behavior of malloc and calloc which is what this discussions is about. There the compiler does exactly what the standard says it should do.


Ok and which compiler were you referring to? Which version? What was the targeted OS/version for which it would be running?

For example are you absolutely positive that the C compiler for the Raspberry Pi meets every part of the specification?

Following is a list of C compilers - are you sure that every single one of them meets the specification (and addendums) in every way?

List of compilers - Wikipedia[^]


Bruno van Dooren wrote:
C has had a formal standard since 1989.


And I was using C both before and after that. There are multiple standards for C. So exactly which standard version are you asserting that one or more of those compilers are compliant with?
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 
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 

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.