getting legacy grideye application to work on clixon

This commit is contained in:
Olof hagsand 2016-03-20 22:25:42 +01:00
parent 6169ea6bed
commit c1c1670a74
22 changed files with 952 additions and 805 deletions

View file

@ -784,14 +784,14 @@ xpath_each(cxobj *cxtop,
*
* @code
* cxobj **xv;
* int xlen;
* if ((xv = xpath_vec(cxtop, "//symbol/foo", &xlen)) != NULL) {
* for (i=0; i<xlen; i++){
* xn = xv[i];
* size_t xlen;
* if (xpath_vec(cxtop, "//symbol/foo", &xv, &xlen) < 0)
* got err;
* for (i=0; i<xlen; i++){
* xn = xv[i];
* ...
* }
* free(xv);
* }
* free(xv);
* @endcode
* Note that although the returned vector must be freed after use, the returned xml
* trees need not be.