JST: JSON tools  1.0.0
JSON tools dynamic library for reading, manipulating and writing JSON tree
Functions
JST_walk.c File Reference
#include "jstools.h"
#include <stdio.h>
#include <stddef.h>
Include dependency graph for JST_walk.c:

Go to the source code of this file.

Functions

JST_Error JST_walk (const JST_Element *root, JST_Visitor visitor, void *context)
 

Function Documentation

◆ JST_walk()

JST_Error JST_walk ( const JST_Element root,
JST_Visitor  visitor,
void *  context 
)

Definition at line 45 of file JST_walk.c.

45  {
46  if(( root == NULL )||( visitor == NULL )) {
47  return JST_ERR_NULL_ARGUMENT;
48  }
49  return visit_element( NULL, -1U, root, visitor, context ) ? JST_ERR_NONE : JST_ERR_INTERRUPTED;
50 }
JST_Visitor has returned false to interrupt the tree&#39;s iteration.
Definition: jstools.h:128
Function misused.
Definition: jstools.h:110