Parsing JSON using C? [closed] - c

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 7 years ago.
Improve this question
There are several C libraries available for parsing JSON, that will compile on Linux. Which library would you recommend?

Just to close the loop:
For the project in question, we ended up going with cJSON. We chose this one from the list of C libraries linked from json.org. Per the homepage, cJSON is:
An ultra-lightweight, portable, single-file, simple-as-can-be ANSI-C compliant JSON parser, under MIT license.
This happened to be a good fit for the particular project at hand, and the library worked out fine.

I've seen YAJL used with MGTwitterEngine (Mac/Cocoa), so I assume it is ok.
I haven't done much with it apart from compiling it and pointing MGTwitterEngine on Mac to its library/header files.

Check out the list at json.org. There are several C libraries for JSON.

Related

Clean up a csv file in C [duplicate]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 4 years ago.
Improve this question
Is there a library I can use to parse CSV files in C. I am on a Linux system. I know about this but it is in C++ and I need something in C. Don't want to go through the pain of debugging and testing if someone has already done it.
Take a look at libcsv, which is a CSV library written in ANSI C89.
There's a simple CSV parser library that's described in the excellent book The Practice of Programming by
Kernighan and Pike, and the source is available from the site linked to.
Parsing a CSV is no too much complicated, depend of the CSV structure, take a look at the strtok function.

Parse CSV file in C [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 4 years ago.
Improve this question
Is there a library I can use to parse CSV files in C. I am on a Linux system. I know about this but it is in C++ and I need something in C. Don't want to go through the pain of debugging and testing if someone has already done it.
Take a look at libcsv, which is a CSV library written in ANSI C89.
There's a simple CSV parser library that's described in the excellent book The Practice of Programming by
Kernighan and Pike, and the source is available from the site linked to.
Parsing a CSV is no too much complicated, depend of the CSV structure, take a look at the strtok function.

is there any CHM/html reference for unix/linux C functions (like in man)? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 5 years ago.
Improve this question
i need such reference preferable in CHM format or any other fast-access format. I need all *nix functions + pthread + all sockets (network) functions.
Searching the internet i did not find any, so working from my home on my unix projects is too slow.. i need to man() all the funcs i need in my remote shell.
Thank you
I don`t know if such exist. You can build one by yourself - man2html ( available on Unix and Linux ) will produce a html version which can be later converted to chm with HTML Help.
Rather than reading Linux-specific man pages I would simply read the documentation in the standard:
http://pubs.opengroup.org/onlinepubs/9699919799/functions/contents.html
Yes, there is one since at least 2011. ;-)
(http://onnerby.se/~daniel/chm/)

BGI graphics for Linux? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 5 years ago.
Improve this question
I need to know whether there is any BGI library for graphics in Linux.
Please do not suggest any library other than BGI because I want to use it using C and I am comfortable with it.
I want to use it using C and I am comfortable with it
Is that a reason to shun other, perhaps more suitable C accessible libraries that are fit-for-purpose?
A quick search online showed that:
BGI is abandoned
There is BOSS
I quote:
BOSS
This is the BGI Over SDL Subsystem
that consists of a rewrite of old DOS
header file/libraries: Borland's
graphics.h, conio.h, bios.h. Also
includes some support for sound and
for mouse. I started this project to
support a couple DOS game projects a
friend and I were working on many
years ago. Here's the page on which I
had charted my original progress.
Which you can find here

Where is the list of the POSIX C API functions? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 4 years ago.
Improve this question
I'm trying to find out where I can find documentation on POSIX functions, but coming up short. Any recommendations?
POSIX 1003.1-2008 is now available on the web (all 3872 pages of it, in PDF and HTML). You have to register (free). I got to it from the Open Group Bookstore.
See How to Portably scanf into a pid_t in C for my original answer that included this information.
Strictly speaking, the definitive list of the POSIX functions is the POSIX standards documents themselves.
There's a pretty good introduction to what POSIX is all about, with links to plenty of reference material on Wikipedia.
zipped versions of the HTML for grepping
http://pubs.opengroup.org/onlinepubs/9699919799/download/
http://pubs.opengroup.org/onlinepubs/9699919799/download/susv4tc2.zip
Those are useful when you start wanting to grep for things, without paying for the PDF.
Mentioned by Jonathan.

Resources