Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things

Re^3: [Win32] pthreads and memory allocation

by Marshall (Abbot)
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

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?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://939387]
[oiskuu]: I'm unfamiliar with android or SELinux. But I believe there is nothing of a kind. Unless you play with capabilities or build your own containers/ namespaces.
[davido]: I am not finding closing STDIN to be an adequate means of making getlogin return undef.
[Corion]: Maybe doing a double-fork (daemonizing) can make go that information away, but maybe not

How do I use this? | Other CB clients
Other Users?
Others rifling through the Monastery: (6)
As of 2017-06-23 19:30 GMT
Find Nodes?
    Voting Booth?
    How many monitors do you use while coding?

    Results (554 votes). Check out past polls.