Which database is most easy to use with C language? [closed] - c

As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.
Closed 10 years ago.
I have a project to be made on "college counseling and admission" in C language and I'm confused whether to choose a database or the file management system in C for the data.
As I have no prior knowledge of connecting C with any of the databases around and also because I find the file handling in C some what difficult.
What would you recommend?

MYSQL has a pretty good and easy interface to be used with c.
You can write basic operations in 30-40 lines of c code.
File handling will not scale and would be difficult once you change your file structure and info. With a database you can keep changing your info logically by adding new tables and still reuse most of the code by just adding new table names.
mysql tutorial c in linux environment

I would use a .plist file and implement it into a UITableView using the .h and .m files. That is the easiest, most simple way to do it. You can keep adding rows to your plist file without having to also code the changes too!
Let me know if you have a better idea!

Related

Ask recommend ways that Lua cowork with C/C++? [closed]

As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.
Closed 9 years ago.
Recently I learned Lua, we need it to co-work with existed C code(HTTP server).
From Lua books, we know that there maybe to way to make them co-working:
From Lua, you can wrap C code in share library(xxx.so) that Lua use require to import them.
From C, you can use existed Lua API to operate on lua_state, it's some trick but it works well.
I adopt both of them and everything seems great, by using Lua we can save a lot of time to implement our business logic. But I'm quite nervous about current architecture, although there was no serious problem in it, I always worried about it, if there was some thing happened, for example, serious performance bottleneck, memory related and so on.
Is anyone got rich experience in this, please give some some advice. Thanks.
Lua is designed to work well with both C and C++. The C API is meant for that.
You don't need to create and use shared libraries to extend Lua. It is the easiest way to extend the standard command line interpreter but it should be easy (if not easier) to link static C libraries for Lua in your own application.
If you want to see some examples of C libraries for Lua, see mine. There are many others.

suggest a database system to implement to c? [closed]

As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.
Closed 9 years ago.
I need to create a program where I will be storing a bunch of data, not a whole lot but a lot of financial matter
I know my answer is all over google but some of those big database folks want to charge for distribution
others only run online or on a virtual host
What is a good free database that I can embed with C and together store information locally and possibly online?
Or should I write my own?
Or should I write my own?
Don't waste time inventing your own database unless existing code doesn't do what you need.
What is a good free database that I can embed with C and together store information locally and possibly online?
From your list of requirements, SQLite should fit your needs just fine.

Is there any Dictionary Library for C? [closed]

As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.
Closed 10 years ago.
I would like to know if there is any dictionary library for C. A dictionary library, literally (It has nothing to do with python dictionaries (hashmaps)). With all the words of the english language, and with tools like...
"I want to print all words that begins with C and end with Y".
I'll not google it, because I really want to know your opinion, if there is any that is specifically good.
Thank you!
You might want to start by looking at Aspell. While it mostly functions as a spell-checker, Aspell also has support for using multiple dictionaries at once and intelligently handling personal dictionaries when more than one Aspell process is open at once. I don't believe you have to be connected to the Internet to use it as well.
Wiktionary might also be of any help. There are a lot of localized variations to support different languages and there will probably be a way to ask them to support your language of interest, if it is not already there.
There's amazing Wordnik API, if you don't mind using Internet for this task. The API is fairly easy and supports regex search. The method you are looking for is /words.{format}/search/{query}
It also has methods to retrieve meanings (/word.{format}/{word}/definitions), synonyms (/word.{format}/{word}/relatedWords), and many other things.
There currently are no C wrappers, although it's very easy to use API directly with libcurl and any JSON or XML parser.

use a parser generator or hand-code when the file to parse is written by a program? [closed]

As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.
Closed 10 years ago.
I'm aware of that this question is very generic and therefore difficult to answer.
I need to parse a text file with content similar to a configuration file. It contains descriptions of measureable signals, how to convert to physical units, comments, descriptions etc. If this file was written by a human I would use a parser generator such as lex/yacc or ANTLR. But since this file is written by an other program it is always correctly formatted etc.
Should I use a parser generator anyway, or is the fact that the file is written by an other program reason for writing a different kind of parser by hand-coding?
Don't solve a problem which has been already solved
If you have tools to do your work for you, then use the tools. So if you can use either ANTLR or LEX/YACC then just go ahead and use that instead of hand coding a lexer and a parser.
It will be much less work
Source: The Art of Unix Programming - By Eric S. Raymond
Sounds complex enough to me, save yourself the time and trouble and use lex/yacc, it doesn't matter if the file is generated by a program it just means you don't have to verify it when parsing, but you get that for free anyway if you use lex/yacc. Plus, changes to the format will be easier to deal with if you use a generator.

Best XML parser for C [closed]

As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.
Closed 11 years ago.
We have to add a new interface to our existing C application. The new interface system requests to our C application and responses to interface will be XML files. We need find a way to read and write XML files. It seems there are many mapping tools available for Java and C++. I did not find anyone for C.
Please let me know if there is anyone suitable for C. We will be okay if it's commercial API as well.
Thanks
One of the most widely used is libxml2. You can take a look here.
It's been a while since I did anything in anger with XML in C but at the time the best offering was the Gnome XML library - libxml from www.xmlsoft.org.
Should be worth a look.
Cheers,
Dan
I've used Expat for some time now, which is great if you need a very fast streaming parser for C. I believe there are DOM and SAX extentions if you need them.

Resources