Comments (2)
Added: ac1191f
from yyjson.
I think yyjson_read_fp(FILE *fp, ...) might be better because FILE
is ANSI C and file descriptor
is platform-dependent.
The caller could use it like this:
// POSIX
yyjson_doc *read_fd(int fd) {
FILE *fp = fdopen(fd, "r")
yyjson_doc *doc = yyjson_read_fp(fd);
fclose(fp);
return doc;
}
from yyjson.
Related Issues (20)
- Developer Friendly directory and file configuration HOT 8
- Wrong read error HOT 6
- GCC 5.4.0 gives unexpected read errors HOT 1
- Error: An internal error has occurred in the compiler HOT 1
- Feature: transfer the ownership of the yyjson_mut_val HOT 2
- About number processing and obtaining HOT 2
- Consider returning NaN from yyjson_get_num HOT 3
- Improve compiler warnings handling HOT 3
- Prefered way to use yyjson in other projects HOT 1
- error C2526 HOT 3
- Documentation does not specify if `len` set by write functions includes NULL terminator HOT 1
- There are more elegant ways to write to files HOT 2
- Create or replace value at JSON Pointer HOT 4
- Add (optional) support for preserving and round-tripping comments. HOT 6
- Trying to get the raw JSON payload of a yyjson_val object HOT 2
- Read JSON with big number `"large:" 1e999` shuold be allowed by default HOT 6
- How to edit sub-object HOT 3
- Parsing json using yyjson_read failed HOT 3
- WASM performance vs native HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from yyjson.