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

Function prompt_get

extern/editline/src/prompt.c:180–199  ·  view source on GitHub ↗

prompt_get(): * Retrieve the prompt printing function */

Source from the content-addressed store, hash-verified

178 * Retrieve the prompt printing function
179 */
180protected int
181prompt_get(EditLine *el, el_pfunc_t *prf, Char *c, int op)
182{
183 el_prompt_t *p;
184
185 if (prf == NULL)
186 return -1;
187
188 if (op == EL_PROMPT)
189 p = &el->el_prompt;
190 else
191 p = &el->el_rprompt;
192
193 if (prf)
194 *prf = p->p_func;
195 if (c)
196 *c = p->p_ignore;
197
198 return 0;
199}

Callers 2

el_getFunction · 0.85
FUN(el,get)Function · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected