Lines Matching refs:offset
102 next_list_item(const char *source, int *offset)
110 if (ThisDbList != 0 && ThisDbSize && *offset < ThisDbSize) {
112 char *result = ThisDbList + *offset;
116 * Put a null on the marker if a separator was found. Set the offset
118 * again, using the data at the offset.
121 *offset += strlen(result) + 1;
122 marker = result + *offset;
125 *offset = marker - ThisDbList;
134 #define NEXT_DBD(var, offset) next_list_item((*offset == 0) ? var : 0, offset)
142 _nc_next_db(DBDIRS * state, int *offset)
171 if ((result = NEXT_DBD(getenv("TERMINFO_DIRS"), offset)) != 0)
177 if ((result = NEXT_DBD(TERMINFO_DIRS, offset)) != 0)
196 if ((result = NEXT_DBD(getenv("TERMPATH"), offset)) != 0)
201 if ((result = NEXT_DBD(TERMPATH, offset)) != 0)
210 *offset = 0;
221 _nc_first_db(DBDIRS * state, int *offset)
224 *offset = 0;