School Assignment? Project Due Tomorrow? Chat LIVE With A Programming Expert!

 

Code Snippets

  

C Source Code


Welcome to Dream.In.Code
Become an Expert!

Join 306,973 Programmers for FREE! Get instant access to thousands of experts, tutorials, code snippets, and more! There are 1,847 people online right now. Registration is fast and FREE... Join Now!





C



  1  2  3  >  »  

Submitted: July 29, 2007        Views: 2101
Command line utility for Windows. If no options are used, it simply shows you what processes are running & the size of heap used. After you see what is running, supply a process name & it will obtain it's process ID & kill the process, freeing the memory heap.
Submitted: March 26, 2009        Views: 1026
Creates a formatted view of a block of memory. Very useful in debugging.
Submitted: February 21, 2008        Views: 1342
Use pre-processor defines to use the code correct for the OS that the code is compiled on.
Submitted: June 24, 2009        Views: 263
This example illustrates how to make a Gtk+ application go fullscreen.
Submitted: July 22, 2009        Views: 629
This is a modified version of QuickSort that reorders the array so that array[K] contains the Kth largest element. This is a very fast and efficient algorithm. Best-case: O(n) Average-case: O(n) Worst-case: O(nē)
Submitted: August 11, 2009        Views: 137
Perform permutations in lexicographic order.
Submitted: July 30, 2006        Views: 1698
MADARRAY.C consist of just few lines of code that demonstrates one-dimensional array handling, manipulation of array dimension(s), and relative output. The program compiles under GCC.EXE, Borland 5.5, Dev-C++ and is fully compatible with windows and linux.
Submitted: March 15, 2009        Views: 557
An extended version of printf, to allow tokens for changing text color, and moving the cursors current position (you can add more on your own).
Submitted: February 1, 2008        Views: 1478
This code reads a directory passed as a string and returns a pointer to a special struct called Directory.
Submitted: November 11, 2008        Views: 942
Another way to reverse a string, using recursion.
Submitted: November 21, 2006        Views: 2463
Program shows the usage of atexit() function which is used to register functions that will be called before exit(0);
Submitted: January 14, 2009        Views: 3583
Two example functions, 1. remove all occurrences of a specified character from a string, and 2. remove a character at a specified position from a string.
Submitted: March 14, 2009        Views: 515
This is a Roman Numeral converter written in C using object oriented design. It follows the proper math rules to an extent.
Submitted: July 30, 2007        Views: 2737
implementation of the sizeof operator in C with an example
Strerror in C by Xing
Submitted: December 2, 2006        Views: 1347
To obtain a pointer to an error message string, linked to a particular value of the global integer errno.
Submitted: October 4, 2006        Views: 4236
a simple program that demonstrates the use of the switch case
Submitted: November 7, 2006        Views: 2857
Program shows the functioning of offsetof( ) macro defined in stddef.h. It gives the offset of the element name within the union or struct.
Submitted: December 4, 2007        Views: 1224
This function will do formatted printing to the Window's console window. It demonstrates the use of the vsprintf to create a new member of the printf family.
Submitted: March 1, 2007        Views: 14489
Demonstrates using the Win32 console API to manipulate console output. *Updated to compile with Dev-C++ 4.9.9.2 -- resolved overloaded function names.
Submitted: April 3, 2007        Views: 3729
This Program will help in situations where you don't know the base equivalant of a number and you want to reverse base equivalant of the number.
Submitted: February 8, 2008        Views: 2527
This code finds the area of a triangle given the three sides.
Submitted: November 11, 2006        Views: 3529
I aimed to make a boot disk as a Operating System with Assembly codes.As you see,it compiled to .asm to .obj and at last to .com file.
Submitted: August 9, 2006        Views: 6585
A simple calculator which performs simple arithmetic, n finds roots of complex numbers. Also it can convert polar to cartesian form n vice-versa.
Submitted: August 10, 2007        Views: 1941
Works great except for rounding off errors (and possibly some bugs I can't find). Corrections will be appreciated.
Submitted: October 5, 2008        Views: 2021
Shows how to write a method like pow() without the use of <math.h>
  1  2  3  >  »  


Submit a Code Snippet and get a chance to win a </dream.in.code> 1GB Thumb Drive!







Live Help!

Be Social

Dream.In.Code RSS Feed Dream.In.Code LinkedIn Group Follow Us On Twitter Fan Us On Facebook

Tutorials

Programming

Web Development

Reference Sheets

Code Snippets

DIC Chatroom

Bye Bye Ads

Monthly Drawing

Thumb Drive

Top Contributors

Top 10 Kudos This Month