mirror of
https://github.com/DaveGamble/cJSON.git
synced 2024-12-27 14:14:07 +08:00
README: fixup last commit
This commit is contained in:
parent
35907223e1
commit
8412b1e2cd
@ -7,6 +7,7 @@ Ultralightweight JSON parser in ANSI C.
|
|||||||
* [Usage](#usage)
|
* [Usage](#usage)
|
||||||
* [Welcome to cJSON](#welcome-to-cjson)
|
* [Welcome to cJSON](#welcome-to-cjson)
|
||||||
* [Building](#building)
|
* [Building](#building)
|
||||||
|
* [Including cJSON](#including-cjson)
|
||||||
* [Some JSON](#some-json)
|
* [Some JSON](#some-json)
|
||||||
* [Here's the structure](#heres-the-structure)
|
* [Here's the structure](#heres-the-structure)
|
||||||
* [Caveats](#caveats)
|
* [Caveats](#caveats)
|
||||||
@ -115,7 +116,7 @@ make all
|
|||||||
If you want, you can install the compiled library to your system using `make install`. By default it will install the headers in `/usr/local/include/cjson` and the libraries in `/usr/local/lib`. But you can change this behavior by setting the `PREFIX` and `DESTDIR` variables: `make PREFIX=/usr DESTDIR=temp install`.
|
If you want, you can install the compiled library to your system using `make install`. By default it will install the headers in `/usr/local/include/cjson` and the libraries in `/usr/local/lib`. But you can change this behavior by setting the `PREFIX` and `DESTDIR` variables: `make PREFIX=/usr DESTDIR=temp install`.
|
||||||
|
|
||||||
### Including cJSON
|
### Including cJSON
|
||||||
If you installed it via the CMake or the Makefile, you can include cJSON like this:
|
If you installed it via CMake or the Makefile, you can include cJSON like this:
|
||||||
|
|
||||||
```c
|
```c
|
||||||
#include <cjson/cJSON.h>
|
#include <cjson/cJSON.h>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user