MCPcopy Create free account
hub / github.com/OpenPrinting/cups / helpFindNode

Function helpFindNode

cgi-bin/help-index.c:177–204  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

175 */
176
177help_node_t * /* O - Node pointer or NULL */
178helpFindNode(help_index_t *hi, /* I - Index */
179 const char *filename, /* I - Filename */
180 const char *anchor) /* I - Anchor */
181{
182 help_node_t key; /* Search key */
183
184
185 /*
186 * Range check input...
187 */
188
189 if (!hi || !filename)
190 return (NULL);
191
192 /*
193 * Initialize the search key...
194 */
195
196 key.filename = (char *)filename;
197 key.anchor = (char *)anchor;
198
199 /*
200 * Return any match...
201 */
202
203 return ((help_node_t *)cupsArrayFind(hi->nodes, &key));
204}
205
206
207/*

Callers 4

mainFunction · 0.85
helpSearchIndexFunction · 0.85
help_load_directoryFunction · 0.85
help_load_fileFunction · 0.85

Calls 1

cupsArrayFindFunction · 0.85

Tested by

no test coverage detected