Yes, I figure that would be correct and I figure that we understand each other.
The basic issue is: "s = (char*) malloc(100);". "s" is cast as a pointer to a memory address. "s" is guaranteed to point to at least 100 bytes (consecutive).
In reply to Re^3: [Win32] pthreads and memory allocation
by Marshall
in thread [Win32] pthreads and memory allocation
by syphilis
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |