Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
23 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
// pass it a raw json string and length, and it will tag all the key/value offsets in the out argument (size it same as js to be safe) | ||
// returns 0 if successful, >0 if not | ||
int js0n(const unsigned char *js, unsigned int len, unsigned short *out, unsigned int olen); | ||
// pass it a raw json string, length, and key and it will return a pointer to the start of the value | ||
// if a vlen is given, it will set it to the length, otherwise it will null terminate it | ||
// returns 0 if not found or any error | ||
char *js0n(char *key, char *json, unsigned int len, unsigned int *vlen); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters