user29918:   struct node *root, *currentNode;
  root = (struct node*)malloc(sizeof(struct node));
  root->value = '\0';
  root->next = 0;
  currentNode = root;


user13432: 
What does the following code in Morse Code Arduino mean?

Step by step:
  struct node *root, *currentNode;

Pointer variables root and currentNode. Pointers to struct node.
  root = (struct node*)malloc(sizeof(struct node));

Allocate memory for a struct node and assign root pointer.
  root->value = '\0';
  root->next = 0;

Assign struct node members using the root pointer. Assign value member to character 0. Assign next to zero, NULL, i.e. often marks end of list.
  currentNode = root;

Last assign currentNode to point to the save value as root, i.e. the allocated struct node. 
Next question?

29918: <pre><code>  struct node *root, *currentNode;
  root = (struct node*)malloc(sizeof(struct node));
  root-&gt;value = '\0';
  root-&gt;next = 0;
  currentNode = root;
</code></pre>
 13432: <blockquote>
  <p>What does the following code in Morse Code Arduino mean?</p>
</blockquote>

<p>Step by step:</p>

<pre><code>  struct node *root, *currentNode;
</code></pre>

<p>Pointer variables <code>root</code> and <code>currentNode</code>. Pointers to <code>struct node</code>.</p>

<pre><code>  root = (struct node*)malloc(sizeof(struct node));
</code></pre>

<p>Allocate memory for a <code>struct node</code> and assign <code>root</code> pointer.</p>

<pre><code>  root-&gt;value = '\0';
  root-&gt;next = 0;
</code></pre>

<p>Assign <code>struct node</code> members using the <code>root</code> pointer. Assign <code>value</code> member to character 0. Assign <code>next</code> to zero, NULL, i.e. often marks end of list.</p>

<pre><code>  currentNode = root;
</code></pre>

<p>Last assign <code>currentNode</code> to point to the save value as <code>root</code>, i.e. the allocated <code>struct node</code>. </p>

<p>Next question?</p>
