query: Should I explicitly cast malloc()'s return value?
positive_passages.docid: 7617
positive_passages.text: Do I cast the result of malloc?
negative_passages.docid: 131696
negative_passages.text: Why does malloc(0) return a non-null address in Windows?
negative_passages.docid: 105070
negative_passages.text: Are there any downsides to passing structs by value in C, rather than passing a pointer?
negative_passages.docid: 36327
negative_passages.text: Why cast an unused function parameter value to void?
negative_passages.docid: 74336
negative_passages.text: String literals inside functions: automatic variables or allocated in heap?
negative_passages.docid: 40864
negative_passages.text: Signed to unsigned conversion in C - is it always safe?
negative_passages.docid: 86435
negative_passages.text: Do I need to explicitly call the base virtual destructor?
negative_passages.docid: 100567
negative_passages.text: Malloc inside a function call appears to be getting freed on return?
negative_passages.docid: 81310
negative_passages.text: What does a const cast do differently?
negative_passages.docid: 37961
negative_passages.text: What is a good general approach for deciding return values in C?
negative_passages.docid: 8597
negative_passages.text: Is an array name a pointer?
negative_passages.docid: 146368
negative_passages.text: I can use more memory than how much I've allocated with malloc(), why?
negative_passages.docid: 45937
negative_passages.text: Is returning a pointer to a static local variable safe?
negative_passages.docid: 17416
negative_passages.text: Freeing allocated memory: realloc() vs. free()
negative_passages.docid: 52362
negative_passages.text: Why does C++ require a cast for malloc() but C doesn't?
negative_passages.docid: 8782
negative_passages.text: What is the 'correct' way to store a native pointer inside a Java object?
negative_passages.docid: 504
negative_passages.text: When and why will a compiler initialise memory to 0xCD, 0xDD, etc. on malloc/free/new/delete?