Home | History | Annotate | Download | only in libmenu

Lines Matching refs:str

28 // str is NULL terminated.
35 char *str; // pointer to string which is going to be allocated
45 str = (char *)malloc(size + 1); // Allocate memory to store user input
46 memset(str, 0, size + 1); // Zero it out
51 strcpy(str, stra); // If show old value copy current value
53 last = str;
57 p = str + strlen(str);
69 csprint(str, GETSTRATTR);
77 *str = 0;
86 p = str;
92 if (p > str)
96 if (p == str)
99 while ((p > str) && (*p == ' '))
104 while ((p > str) && (*p == ' '))
108 while ((p > str) && ((*p == ' ') || (*(p - 1) != ' ')))
133 if (last > str)
150 if (last > str)
152 if (p > str)
157 fudge = last - str;
158 while (p > str)
160 p = str;
162 last = str;
166 ((unsigned int)(p - str) < size - 1)) {
193 csprint(str, GETSTRATTR);
196 gotoxy(row, col + (p - str));
205 strcpy(stra, str);
206 free(str);