I would like to parse a lot of apache log files with a C library.
Who knows a good C library which is optimized for good performance?
Thank you for advice!
Did you give a try to MergeLog ? You can use the parser that comes with it.
Related
I need to read/write to INI file in C. It is a little strange for me that I can't find any standard way of doing that. What is the common way of dealing with INI files in C?
I prefer both - platform independent and Linux INI file parser libs.
This link may shed some light on the matter (written by the guy that authored inih as mentioned by Zagorulkin Dmitry) - I have used minIni and been happy with it..
I know about this lib.
You could use it http://code.google.com/p/inih/
is there anyone that knows if there is a lightweight C compiler front-end? I really just need lexing + parsing + semantic checks I need to do code generation and static analysis on that. Thanks in advance
Alberto
Try TCC: http://bellard.org/tcc/
Check out clang, an open source front end to LLVM.
I have downloaded mpeg.org standard codec source code mpeg2v12 from
http://www.mpeg.org/MPEG/video/mssg-free-mpeg-software.html
I am now looking for examples of how to use it's decoder API to read some mpeg2 file. I appreciate any code sample you can provide. Thanks in advance.
Artur
Unfortunately the correct answer is You cannot do this!.
MSSG's code is stand alone application and not a decoder as a re-entrant library so it cannot be used by linking from other application.
You can however use libmpeg2. This is relatively easy to integrate with application and fully compliant.
Hallo,
I'm looking for a really simple and easily hackable tar library for C or C++. Ideally it should have a permissive license (BSD/LGPL) and not have a ton of Unix/Windows OS dependencies, as I plan to use it from an embedded RTOS...
Any ideas?
I haven't used it myself, but have you tried libtar? It is written in C and BSD licensed.
The tar format is pretty simple. Have you considered writing your own tar library?
Take a look at the tar tool that comes on NetBSD.
It is actually a compound tool of pax, tar, and cpio, I believe you'll learn most from that.
http://people.freebsd.org/~kientzle/libarchive/
I'm trying to write program to work as programmable directory, in other words: User, or other systems open that directory and read/write files or dirs. I try to create program to cache most used files in memory (less I/O to HDD), but right now I don't know how to achive that. There are probably some docs about this but I can't find them. I know that there is FUSE, NFS and others, but reading their source is quite difficult. If any one has info about implementation in C lang I'll be very grateful.
Sorry for my English..
FUSE has a C interface - take a look at their Hello World example.
If you want a simple implementation, try Python's FUSE library. A quick tutorial can be found here.
You could have a look at the GIO library — it's part of GTK, but can be used separately. The documentation is pretty thorough, and if you need to do some quick prototyping you can use the PyGTK GIO bindings to mess around before going back and writing it in C.
It's licensed under the LGPL.
If you find it easier to code in Python, it's possible to create a compiled program using cx_Freeze.