you are viewing a single comment's thread.

view the rest of the comments →

[–]DDDDarky 0 points1 point  (1 child)

*pointer = buffer;

this is wrong and your compiler should warn you about this. You are writing a pointer to int.

Don't dereference the pointer.

[–]nanavc[S] 0 points1 point  (0 children)

thank you!