linesep("prefix$%suffix", "$%") would returnprefixsuffixthis is useful for internet protocols which lines end in "\r\n"SPECIAL THANX to pink for helping me l33tify this c0de
|
This is a basic skeleton of functions that utilize the GIOChannel stuff from glib for a basic tcp server. This will open a socket and do all the work needed for accepting connections and setting up appropriate callbacks. Hook into it at ...
|
This is a basic skeleton of functions that utilize the GIOChannel stuff from glib for a basic tcp server. This will open a socket and do all the work needed for accepting connections and setting up appropriate callbacks. Hook into it at ...
|
This is a basic skeleton of functions that utilize the GIOChannel stuff from glib for a basic tcp server. This will open a socket and do all the work needed for accepting connections and setting up appropriate callbacks. Hook into it at ...
|
This snippet get configuration option from file. It is function:search(char *file_name, char *model, char *result);it get from file(program.conf) :user=armadilloso if:search("program.conf", "user", char *result)so ...
|
SmrtHandle implements a template class for dealing with all kinds of handles. It automatically closes the encapsulated handleusing the appropriate function. A reference count is used to keep track of the number of copies referring to a ...
|
The SupervisePtr can be used with every object that doesn't destroies itselfe or is destroyed by someone else. The user just handles the pointer on an object over to the SupervisePtr. From this time on the user hasn't to worry about ...
|
Socklib is a small library for writing simple programs that talk over a network. It supports the concept of a server and a client. It's fairly self-explanitory, and one readthrough should tell you how to use it. If you're too busy, here's ...
|
A splay tree class with parent pointers....done for school, not the best implementation ever but it seems to work fine.
|
Splitter is a hack intended for splitting audio files that contain several songs into pieces so that every file contains only one song. This is especially useful for recording tapes and burning them on CD, so it is not necessary to look ...
|
|
|