Note that there are some explanatory texts on larger screens.

plurals
  1. USChrono Kitsune
    primarykey
    data
    text
    plurals
    1. This table or related slice is empty.
    1. COAssuming you still hold pointers to the siblings, you may free them. For example if you did `struct Node *prev = rootNode->prevSibling;`, you could free `prev` after freeing the root node. Otherwise, you have a "dangling pointer", which is a memory leak. You can't free the root then the siblings because the address the root points may have had its value overwritten, so what you think is a sibling may be something else.If you must free the siblings later, make sure you can still access those addresses somehow. Otherwise you will leak memory.
      singulars
    2. CO1) This function is designed for thread safety; no static variables, see? But as I claimed, it still requires a mutable string. 2) *str = 0 will be true when there are no more tokens, meaning you're at the end of the original string. str is the token returned, so if you're at the end of the string, it makes sense to return NULL. Run regular strtok on an "empty" string (one with an explicit '\0' in front) and tell me the behaviour differs. When a null terminator is reached, it is the end of the string. How can you find more tokens using a remaining string of 0 chars in length?
      singulars
    3. CORead this [ptrace man page](http://man7.org/linux/man-pages/man2/ptrace.2.html). It involves a bit of reading, but you will know how to do it then. Google might help too. Try something like "ptrace threads". I think I saw an article on Linux Journal about it when I did that, so it's bound to be descriptive.
      singulars
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload