MCPcopy Create free account
hub / github.com/F-Stack/f-stack / csv_path_top

Function csv_path_top

tools/libxo/encoder/csv/enc_csv.c:225–237  ·  view source on GitHub ↗

* Return the element name at the top of the path stack. This is the * item that we are currently trying to match on. */

Source from the content-addressed store, hash-verified

223 * item that we are currently trying to match on.
224 */
225static const char *
226csv_path_top (csv_private_t *csv, ssize_t delta)
227{
228 if (!(csv->c_flags & CF_HAS_PATH) || csv->c_path == NULL)
229 return NULL;
230
231 ssize_t cur = csv->c_path_cur + delta;
232
233 if (cur < 0)
234 return NULL;
235
236 return csv->c_path[cur].pf_name;
237}
238
239/*
240 * Underimplemented stack functionality

Callers 2

csv_open_levelFunction · 0.85
csv_close_levelFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected