Returns 0 to stop listing, 1 to continue. */
| 172 | |
| 173 | /* Returns 0 to stop listing, 1 to continue. */ |
| 174 | int AddToList(char *text, uint32 id) |
| 175 | { |
| 176 | if(listcount==16) |
| 177 | { |
| 178 | int t=ListChoice(0); |
| 179 | mordoe=0; |
| 180 | if(t==-1) return(0); // Stop listing. |
| 181 | else if(t>0 && t<17) |
| 182 | { |
| 183 | listsel=listids[t-1]; |
| 184 | return(0); |
| 185 | } |
| 186 | listcount=0; |
| 187 | } |
| 188 | mordoe=1; |
| 189 | listids[listcount]=id; |
| 190 | printf("%2d) %s\n",listcount+1,text); |
| 191 | listcount++; |
| 192 | return(1); |
| 193 | } |
| 194 | |
| 195 | /* |
| 196 | ** |
no test coverage detected