You're here: Snippet Directory » C/C++ (495)
Language:

Snippet Directory - C/C++ 

Snippets

simular interface to strsep

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

Language: English | Programming Language: C | Author: tuxx [not registered]

Skeleton TCP routines using Glib.

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 ...

Language: English | Programming Language: C | Author: centove [not registered]

Skeleton TCP routines using Glib.

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 ...

Language: English | Programming Language: C | Author: centove [not registered]

Skeleton TCP routines using Glib.

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 ...

Language: English | Programming Language: C | Author: centove [not registered]

Small snippet to search option from config file

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 ...

Language: English | Programming Language: C | Author: xdefactor [not registered]

Smart Handle Class

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 ...

Language: English | Programming Language: C++ | Author: dgehriger [not registered]

smartpointer template

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 ...

Language: English | Programming Language: C++ | Author: sunnyjoker [not registered]

Socklib

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 ...

Language: English | Programming Language: C | Author: bwebpages [not registered]

Splay Tree

A splay tree class with parent pointers....done for school, not the best implementation ever but it seems to work fine.

Language: English | Programming Language: C++ | Author: kalpol [not registered]

Splitter

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 ...

Language: English | Programming Language: C++ | Author: auriocus [not registered]
RSS