JST: JSON tools  1.0.0
JSON tools dynamic library for reading, manipulating and writing JSON tree
JST_pairs_compare.c
Go to the documentation of this file.
1 #include "jstools.h"
2 #include "JST_private.h"
3 
4 #include <string.h>
5 
6 int JST_pairs_compare( const void * left, const void * right ) {
7  const JST_Pair * const * lpp = left;
8  const JST_Pair * const * rpp = right;
9  const JST_Pair * lp = *lpp;
10  const JST_Pair * rp = *rpp;
11  const char * ln = lp->name;
12  const char * rn = rp->name;
13  return strcmp( ln, rn );
14 }
char * name
This property&#39;s name.
Definition: jstools.h:96
int JST_pairs_compare(const void *left, const void *right)
A object attribute item has a parent and is a named-typed-value pair.
Definition: jstools.h:93