Drat, I almost forgot, you need the write_to_q_head as well:
// 25/04/2002 Frnknstn - - - - - - - - - - - - - - - - - - - - - - - - -
// NOTE: 'txt' must be at most MAX_INPUT_LENGTH big.
void write_to_q_head(const char *txt, struct txt_q *queue, int aliased)
{
struct txt_block *newh;
CREATE(newh, struct txt_block, 1);
newh->text = strdup(txt);
newh->aliased = aliased;
if (!queue->head) // queue empty?
{
newh->next = NULL;
queue->head = queue->tail = newh;
} else {
newh->next = queue->head;
queue->head = newh;
}
}
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Peter Finlayson
frnknstn@iafrica.com
--
+---------------------------------------------------------------+
| FAQ: http://qsilver.queensu.ca/~fletchra/Circle/list-faq.html |
| Archives: http://post.queensu.ca/listserv/wwwarch/circle.html |
| Newbie List: http://groups.yahoo.com/group/circle-newbies/ |
+---------------------------------------------------------------+
This archive was generated by hypermail 2b30 : 06/25/03 PDT