MCPcopy Create free account
hub / github.com/FirebirdSQL/firebird / search_init

Function search_init

extern/editline/src/search.c:66–80  ·  view source on GitHub ↗

search_init(): * Initialize the search stuff */

Source from the content-addressed store, hash-verified

64 * Initialize the search stuff
65 */
66protected int
67search_init(EditLine *el)
68{
69
70 el->el_search.patbuf = el_malloc(EL_BUFSIZ *
71 sizeof(*el->el_search.patbuf));
72 if (el->el_search.patbuf == NULL)
73 return -1;
74 el->el_search.patlen = 0;
75 el->el_search.patdir = -1;
76 el->el_search.chacha = '\0';
77 el->el_search.chadir = CHAR_FWD;
78 el->el_search.chatflg = 0;
79 return 0;
80}
81
82
83/* search_end():

Callers 1

el_init_fdFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected