Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re^3: [Win32] pthreads and memory allocation

by Marshall (Prior)
on Nov 22, 2011 at 08:28 UTC ( #939387=note: print w/ replies, xml ) Need Help??


in reply to Re^2: [Win32] pthreads and memory allocation
in thread [Win32] pthreads and memory allocation

Yes,
Perhaps I should have declared char * useless_and_pointless; instead of char * s;.

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).


Comment on Re^3: [Win32] pthreads and memory allocation

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://939387]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (11)
As of 2014-07-29 13:40 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite superfluous repetitious redundant duplicative phrase is:









    Results (217 votes), past polls