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 need to write client and server applications for MS-DOS using C language.
I don't want to start from scratch and implement sockets.
Can you advice me library in which socket functionality is implemented and for which exist good manuals and examples.
I already tried mTCP library: I got source files from it, added sources from example file and tried to Compile in Turbo C, but it raises a lot of errors it will be very hard task for me to cope with them.
Try libnet. According to it's web page (http://libnet.sourceforge.net/) it supports DOS systems (djgpp compiler), though I personally haven't tried it on DOS.
There is also WATTCP: http://www.erickengelke.com/wattcp/
Have you tried that?
Related
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 apologize for my bad English.
Why does the C89 library not contain functions to create/delete/rename/remove a directory? Or maybe I didn't find that? I see functions for some file operations only, but not for directories.
Thank you
Best Regards
Otherwise, <dirent.h> header file is now pseudo-standard: both MinGW and GCC have it. So, you can handle directories on a conventional personnal computer, without too much trouble.
Traditionally (and C89 is tradition) the directory structure is seen as part of the operating system, and at the time (1989) there were still OS arround that had incompatible concepts for that.
Nowadays, there would perhaps be enough common ground to integrate such a thing in C, as it is e.g now done for threading in C11, but I am not aware of an initiative to do so.
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.
I know it's a standar c library, but I don't understand why c doesn't have a free library, not one that is lgpl. Is there any such library and if not, than that means every company/particular developer has to buy even the most basic libraries to develop commercial apps ?
every company/particular developer has to buy even the most basic libraries to develop commercial apps ?
Well, they have to buy (or get for free) the compiler anyway, and libc comes with it.
Also, writing an universal C library is impossible, since exit(), setjmp(), etc. depend on the particular compiler and platform.
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.
I want to develop some graphical application in C using gcc compiler on Linux.
Which graphics library shall I use to start with? How can I start developing graphics appication on Linux using C?
If you are talking about straight graphics look at:
SDL
GGI (very simple)
If you are talking GUI, QT would certainly be your best bet.
SDL -- http://www.libsdl.org/
Very straightforward to use, and powerful.
If you want pure C (vs C++), there's SDL: SDL, a standard in C library.
If you like C++, there's also SFML: SFML
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'm doing a sniffing project and almost done with it. We are now planning to create a GUI for it. We have written the entire network programming project in C language on Ubuntu 10.10 platform. Any idea/tools with tutorials regarding how to create a GUI for these C programs?
Will the language/tool/platform used for creating the GUI affect the C source code?
Thank you
There are different libraries for creating GUI applications in Linux.
There is GTK+, which is the native widget toolkit for GNOME and which has a C API. There is also Qt which has a very good C++ API, and which is also available for Windows, Mac OS X and other platforms.
I would suggest using GTK+ . It was natively written in C so compatibility shouldn't be an issue. I used this to help me learn it when i was messing around with it.
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.