R
Ronny Mandal
Hi!
I am writing a program that'll read binary integers from a file, put them
into a dynamic array. THe array is first declared
int* a = malloc( sizeof( int ) * N ) <-- N is the number of slots.
When N is odd, the program will work just fine, however when N is even, it
will not work.
Is it just a Win32-issue, or a bug?
--
Regards,
Ronny Mandal
This e-mail and any attachment are confidential and may be privileged or
otherwise protected from disclosure. It is solely intended for the person(s)
named above. If you are not the intended recipient, any reading, use,
disclosure, copying or distribution of all or parts of this e-mail or
associated attachments is strictly prohibited. If you are not an intended
recipient, please notify the sender immediately by replying to this message
or by telephone and delete this e-mail and any attachments permanently from
your system.
I am writing a program that'll read binary integers from a file, put them
into a dynamic array. THe array is first declared
int* a = malloc( sizeof( int ) * N ) <-- N is the number of slots.
When N is odd, the program will work just fine, however when N is even, it
will not work.
Is it just a Win32-issue, or a bug?
--
Regards,
Ronny Mandal
This e-mail and any attachment are confidential and may be privileged or
otherwise protected from disclosure. It is solely intended for the person(s)
named above. If you are not the intended recipient, any reading, use,
disclosure, copying or distribution of all or parts of this e-mail or
associated attachments is strictly prohibited. If you are not an intended
recipient, please notify the sender immediately by replying to this message
or by telephone and delete this e-mail and any attachments permanently from
your system.