Catch up on stories from the past week (and beyond) at the Slashdot story archive

 



Forgot your password?
typodupeerror

Comment 2 problems (Score 1) 15

1. you shouldn't pass the address of *buf to memset, as it's already a pointer.

2. In the same line, you want the sizeof(BUF), not the sizeof(buf). The first gives you the size of the struct, the second, the size of the pointer.

Slashdot Top Deals

"Neighbors!! We got neighbors! We ain't supposed to have any neighbors, and I just had to shoot one." -- Post Bros. Comics

Working...