Snippet Library

Browse | Submit A New Snippet | Create A Package

Snippets by language: C

Snippet ID Title Creator
Packages Of Snippets
1DansguardianOzgur Karatas
DG content filtering latest versions for debian package.
5dsadsa'asdsad' dsadsa'
gjhjg'
29paflibBreno Leitao
PAFLib is an IBM written library which exposes Power Architecture Facilities to userspace via an API. This includes the Data Stream Control Register Facility (DSCR) and the Event-Based Branching facility (EBB). Linux kernel 3.9 has exposed problem-state DSCR usage for ISA 2.06 (POWER7 – emulated) and ISA 2.07 (POWER8 – in hardware). Linux 3.10 has exposed the EBB facility.
30SelorJosué Silva Santos
MTA Selor is an open source mail server (SMTP). Written in C and Assembly, MTA Selor is small, fast, flexible and secure.
35CPStrncpyDaniel Li
The CPStrncpy() function copies the string pointed to by src, including the terminating null byte ('\0'), to the buffer pointed to by dest. The strings may
not overlap, and the destination string dest must be large enough to receive the copy. Beware of buffer overruns!

The CPStrncpy() function is similar, except that at most n bytes of src are copied. Warning: If there is no null byte among the first n bytes of src, the
string placed in dest will not be null-terminated.

If the length of src is less than n, CPStrncpy() writes additional null bytes to dest to ensure that a total of n bytes are written.
Snippets
5A new strncpy: CPStrncpyManfred Rebentisch
This CPStrnpy() always copies a null at the end of the destination buffer and write only strlen(src) bytes, if the len is shorter than the given maximal size. So you get more performance. But destination buffer must have a size of n + 1.
6Merge Strings with CPStrDupArgManfred Rebentisch
CPStrDupArg copies all given strings inta a new one and returns it. For the returned string is memory allocated, free it with free(). The last argument must be a NULL.
Example:
myPath = CPStrDupArg(rootDir, "/", myDir, NULL);
7Get free disc space with a C-classManfred Rebentisch
With this C-'class' you get disc information.
It is an example, how to program with C using encapsulate methods. I think, using C-objects makes C-programming easier.
11Decimal EmpaquetadoAndres Ovalle
Algoritmo de empaquetamientos de decimales.
12Binario -> HexadecimalAndres Ovalle
Conversion de un Binario a un Hexadecimal, en agrupacion de 4 bits
41C Code Bubble SortAyla Stokes
Bubble sorting algorithm that focus on comparing elements from the start of the array till to the end. This implementation is for new programming learners. I haven't used any libraries to get this task done.
http://h3adrush.com/ is the principal owner of this code. And you can use, make changes & distribute this code, but you have to give attribution to the owners and all the other people involved in this code up-gradation chain.
42C program of insertion sortMelta Fitz
Insertion sort works on the principle of simplicity, building one element at a time. It is a less efficient algorithm, when it comes to big arrays sorting but works best in short arrays. I designed this for new learners.


I also submitted this on github and sourceforge.


- afp.sourceforge.net/entries/Imperative_Insertion_Sort.shtml

Copyright This program is the copyright of https://www.chicagoexcelclasses.com/ and you have to take permission before using it at anywhere.

47C Code Bubble SortValeria Thrift
A file is the source to access data and the systems that supports file management in Windows are UDF, NTFS, exFAT, UDF, and FAT32.and FAT32.
To construct junction and hard links you can get information from http://alouetteconstruction.com/. Windows management systems also provides the authority to conduct input and output operations as well.
48File Management in WindowsValeria Thrift
edgtrhtrjfg ghyjgc fgjyjhcv yg
49File Management in WindowsValeria Thrift
A file is the source to access data and the systems that supports file management in Windows are UDF, NTFS, exFAT, UDF, and FAT32.and FAT32. Symbolic points are also very necessary in file management and the object is known as target.

To construct junction and hard links you can get information from http://alouetteconstruction.com/. Windows management systems also provides the authority to conduct input and output operations as well.
58QuotationsPolly Cattell
Quotation demonstrates multicore fuzzy text searching using Scala 2.9 actors and Jdk 1.6 or 1.7 and Levenshtein distances over nearly 125000 'famous' quotations

<A HREF="http://quoteshunter.com/sad-quotes";>http://quoteshunter.com/sad-quotes</A></P>


59QuotationsPolly Cattell
Quotation demonstrates multicore fuzzy text searching using Scala 2.9 actors and Jdk 1.6 or 1.7 and Levenshtein distances over nearly 125000 'famous' quotations

http://quoteshunter.com/sad-quotes
60LampJohnna Grannan
LAMP stack is an open source web platform mainly used to run different web sites and servers. It supports Linux, MySQL, and PHP. It is considered a very reliable choice for developing the high performing apps that require an upgraded and supportive backup.

<a href="http://www.purelamps.com/";>http://www.purelamps.com/</a>
61Lamp StackJohnna Grannan
LAMP stack is an open source web platform mainly used to run different web sites and servers. It supports Linux, MySQL, and PHP. It is considered a very reliable choice for developing the high performing apps that require an upgraded and supportive backup.

http://www.purelamps.com
71 C code to Write to a Sentence to a FileBrook Jee
This is part of File Management system in C language. To write in a file in C , is not tough just need to follow a simple code.
FILE : A file represents a sequence of bytes, regardless of it being a text file or a binary file.
http://applianceauthority.org/blenders/
78useGpsData.hmilton forlenza
library for useGpsData.c
Powered By FusionForge