Edit:
Thanks Salem for your answer, thanks to you I'm sure there are no probs.
There is no crashing, but i needed to be sure.
Type: Posts; User: coyotte508
Edit:
Thanks Salem for your answer, thanks to you I'm sure there are no probs.
There is no crashing, but i needed to be sure.
ok thanks a lot.
It'd be long to explain why in some cases i may allocate 0 bytes.
I did it a few times (crashed windows), running some SDL application of my own right after windows started. (blue screen of death... I saw it on Vista!)
I'm totally OK with allowing 0 bytes, i'm...
Hey,
I'm doing some weird things (mix of C/C++), and I'd like to know if I was allowed to use malloc(0):
#include <stdlib.h>
int main()
{
int *i = malloc (0);
maybe using sizeof():
#include <stdio.h>
#include <stdlib.h>
int main()
{
char *string1 = "Hello how are you?";
char string[] = "hello how are you?";
ok thanks.
Hi,
I'm writing code that works, but in such a nasty way...
typedef union Pixel
{
struct
{
unsigned bit0:1;