Lines Matching defs:text
51 * - Copy the text of the event
62 e->text = strdup(txt);
63 if (e->text == NULL)
75 char *text;
78 * Adding text to the event:
79 * - Save a copy of the old text (unknown length, so strdup())
80 * - Allocate enough space for old text + \n + new text + 0
81 * - Store the old text + \n + new text
84 text = strdup(e->text);
85 if (text == NULL)
88 free(e->text);
89 e->text = (char *)malloc(strlen(text) + strlen(txt) + 3);
90 if (e->text == NULL)
92 strcpy(e->text, text);
93 strcat(e->text, "\n");
94 strcat(e->text, txt);
95 free(text);
112 * Go through all events and print the text of the matching
117 e->var ? '*' : ' ', e->text,