<pre><code>typedef struct {
        nat id;
        char *data;
        } element_struct;

typedef element_struct * element;

void push(element e, queue s) {
        nat lt = s-&gt;length;
        if (lt == max_length - 1) {
                printf("Error in push: Queue is full.\n");
                return;
        }
        else {
                s-&gt;contents[lt] = e;
                s-&gt;length = lt + 1;
        }
}
int main () {
         push(something_of_type_element, s);
}
</code></pre>

<p>How would i go about formatting "<code>something_of_type_element</code>"?</p>

<p>Thanks</p>

<p>Notes:
nat is the same as int</p>

How about:
```
```
element elem = malloc(sizeof(element_struct));
if (elem == NULL) {
    /* Handle error. */
}

elem->id = something;
elem->data = something_else;

push(elem, s);
```
```
Note that there's lots of memory management missing here...