Strict Standards: Non-static method category::getCategoryDetails() should not be called statically in /home/dreaminc/public_html/code/themes/tpl.index.php on line 36

Strict Standards: Non-static method category::checkCategory() should not be called statically in /home/dreaminc/public_html/home/include/include.category.php on line 15

Strict Standards: Non-static method category::getCategoryDetails() should not be called statically in /home/dreaminc/public_html/code/themes/tpl.index.php on line 36

Strict Standards: Non-static method category::checkCategory() should not be called statically in /home/dreaminc/public_html/home/include/include.category.php on line 15
C - Source Code | DreamInCode.net
Strict Standards: Non-static method members::isLoggedIn() should not be called statically in /home/dreaminc/public_html/home/templates2/top.php on line 32

Strict Standards: Non-static method members::isMember() should not be called statically in /home/dreaminc/public_html/home/include/class.member.php on line 39

Strict Standards: Non-static method ipb_interface::getUserId() should not be called statically in /home/dreaminc/public_html/home/include/class.member.php on line 10

Strict Standards: Non-static method ipb_interface::checkUserId() should not be called statically in /home/dreaminc/public_html/home/include/class.member.php on line 10

Strict Standards: Non-static method members::isDicpp() should not be called statically in /home/dreaminc/public_html/home/templates2/top.php on line 32

Strict Standards: Non-static method members::isMember() should not be called statically in /home/dreaminc/public_html/home/include/class.member.php on line 16

Strict Standards: Non-static method ipb_interface::getUserId() should not be called statically in /home/dreaminc/public_html/home/include/class.member.php on line 10

Strict Standards: Non-static method ipb_interface::checkUserId() should not be called statically in /home/dreaminc/public_html/home/include/class.member.php on line 10

Strict Standards: Non-static method members::isDicpp() should not be called statically in /home/dreaminc/public_html/home/templates2/top.php on line 133

Strict Standards: Non-static method members::isMember() should not be called statically in /home/dreaminc/public_html/home/include/class.member.php on line 16

Strict Standards: Non-static method ipb_interface::getUserId() should not be called statically in /home/dreaminc/public_html/home/include/class.member.php on line 10

Strict Standards: Non-static method ipb_interface::checkUserId() should not be called statically in /home/dreaminc/public_html/home/include/class.member.php on line 10

Strict Standards: Non-static method ads::isAdCompatible() should not be called statically in /home/dreaminc/public_html/home/templates2/top.php on line 133
 

Code Snippets

  

C Source Code



Strict Standards: Non-static method members::isLoggedIn() should not be called statically in /home/dreaminc/public_html/home/include/class.templates.php on line 136

Strict Standards: Non-static method members::isMember() should not be called statically in /home/dreaminc/public_html/home/include/class.member.php on line 39

Strict Standards: Non-static method ipb_interface::getUserId() should not be called statically in /home/dreaminc/public_html/home/include/class.member.php on line 10

Strict Standards: Non-static method ipb_interface::checkUserId() should not be called statically in /home/dreaminc/public_html/home/include/class.member.php on line 10

Strict Standards: Non-static method members::isLoggedIn() should not be called statically in /home/dreaminc/public_html/home/include/class.templates.php on line 31

Strict Standards: Non-static method members::isMember() should not be called statically in /home/dreaminc/public_html/home/include/class.member.php on line 39

Strict Standards: Non-static method ipb_interface::getUserId() should not be called statically in /home/dreaminc/public_html/home/include/class.member.php on line 10

Strict Standards: Non-static method ipb_interface::checkUserId() should not be called statically in /home/dreaminc/public_html/home/include/class.member.php on line 10

Strict Standards: Non-static method ads::isAdCompatible() should not be called statically in /home/dreaminc/public_html/home/include/class.templates.php on line 31


Strict Standards: Non-static method category::getCategoryDetails() should not be called statically in /home/dreaminc/public_html/code/themes/tpl.index.php on line 117

Strict Standards: Non-static method category::checkCategory() should not be called statically in /home/dreaminc/public_html/home/include/include.category.php on line 15
C


Strict Standards: Non-static method ipb_interface::getUserId() should not be called statically in /home/dreaminc/public_html/code/themes/tpl.index.php on line 125

Strict Standards: Non-static method category::categoryChildren() should not be called statically in /home/dreaminc/public_html/code/themes/tpl.category.php on line 2

Strict Standards: Non-static method category::checkCategory() should not be called statically in /home/dreaminc/public_html/home/include/include.category.php on line 129

Strict Standards: Non-static method category::categoryChildren() should not be called statically in /home/dreaminc/public_html/code/themes/tpl.category.php on line 5

Strict Standards: Non-static method category::checkCategory() should not be called statically in /home/dreaminc/public_html/home/include/include.category.php on line 129

Strict Standards: Non-static method category::getCategoryDetails() should not be called statically in /home/dreaminc/public_html/code/themes/browse.cat.php on line 67

Strict Standards: Non-static method category::checkCategory() should not be called statically in /home/dreaminc/public_html/home/include/include.category.php on line 15

Strict Standards: Non-static method snippet::getCategorySnippets() should not be called statically in /home/dreaminc/public_html/code/themes/browse.cat.php on line 100

Strict Standards: Non-static method category::checkCategory() should not be called statically in /home/dreaminc/public_html/home/include/include.snippet.php on line 39

Strict Standards: Non-static method category::categoryChildren() should not be called statically in /home/dreaminc/public_html/home/include/include.snippet.php on line 50

Strict Standards: Non-static method category::checkCategory() should not be called statically in /home/dreaminc/public_html/home/include/include.category.php on line 129

Strict Standards: Non-static method snippet::getSnippet() should not be called statically in /home/dreaminc/public_html/home/include/include.snippet.php on line 100

Strict Standards: Non-static method snippet::checkSnippet() should not be called statically in /home/dreaminc/public_html/home/include/include.snippet.php on line 126

Strict Standards: Non-static method snippet::getSnippet() should not be called statically in /home/dreaminc/public_html/home/include/include.snippet.php on line 100

Strict Standards: Non-static method snippet::checkSnippet() should not be called statically in /home/dreaminc/public_html/home/include/include.snippet.php on line 126

Strict Standards: Non-static method snippet::getSnippet() should not be called statically in /home/dreaminc/public_html/home/include/include.snippet.php on line 100

Strict Standards: Non-static method snippet::checkSnippet() should not be called statically in /home/dreaminc/public_html/home/include/include.snippet.php on line 126

Strict Standards: Non-static method snippet::getSnippet() should not be called statically in /home/dreaminc/public_html/home/include/include.snippet.php on line 100

Strict Standards: Non-static method snippet::checkSnippet() should not be called statically in /home/dreaminc/public_html/home/include/include.snippet.php on line 126

Strict Standards: Non-static method snippet::getSnippet() should not be called statically in /home/dreaminc/public_html/home/include/include.snippet.php on line 100

Strict Standards: Non-static method snippet::checkSnippet() should not be called statically in /home/dreaminc/public_html/home/include/include.snippet.php on line 126

Strict Standards: Non-static method snippet::getSnippet() should not be called statically in /home/dreaminc/public_html/home/include/include.snippet.php on line 100

Strict Standards: Non-static method snippet::checkSnippet() should not be called statically in /home/dreaminc/public_html/home/include/include.snippet.php on line 126

Strict Standards: Non-static method snippet::getSnippet() should not be called statically in /home/dreaminc/public_html/home/include/include.snippet.php on line 100

Strict Standards: Non-static method snippet::checkSnippet() should not be called statically in /home/dreaminc/public_html/home/include/include.snippet.php on line 126

Strict Standards: Non-static method snippet::getSnippet() should not be called statically in /home/dreaminc/public_html/home/include/include.snippet.php on line 100

Strict Standards: Non-static method snippet::checkSnippet() should not be called statically in /home/dreaminc/public_html/home/include/include.snippet.php on line 126

Strict Standards: Non-static method snippet::getSnippet() should not be called statically in /home/dreaminc/public_html/home/include/include.snippet.php on line 100

Strict Standards: Non-static method snippet::checkSnippet() should not be called statically in /home/dreaminc/public_html/home/include/include.snippet.php on line 126

Strict Standards: Non-static method snippet::getSnippet() should not be called statically in /home/dreaminc/public_html/home/include/include.snippet.php on line 100

Strict Standards: Non-static method snippet::checkSnippet() should not be called statically in /home/dreaminc/public_html/home/include/include.snippet.php on line 126

Strict Standards: Non-static method snippet::getSnippet() should not be called statically in /home/dreaminc/public_html/home/include/include.snippet.php on line 100

Strict Standards: Non-static method snippet::checkSnippet() should not be called statically in /home/dreaminc/public_html/home/include/include.snippet.php on line 126

Strict Standards: Non-static method snippet::getSnippet() should not be called statically in /home/dreaminc/public_html/home/include/include.snippet.php on line 100

Strict Standards: Non-static method snippet::checkSnippet() should not be called statically in /home/dreaminc/public_html/home/include/include.snippet.php on line 126

Strict Standards: Non-static method snippet::getSnippet() should not be called statically in /home/dreaminc/public_html/home/include/include.snippet.php on line 100

Strict Standards: Non-static method snippet::checkSnippet() should not be called statically in /home/dreaminc/public_html/home/include/include.snippet.php on line 126

Strict Standards: Non-static method snippet::getSnippet() should not be called statically in /home/dreaminc/public_html/home/include/include.snippet.php on line 100

Strict Standards: Non-static method snippet::checkSnippet() should not be called statically in /home/dreaminc/public_html/home/include/include.snippet.php on line 126

Strict Standards: Non-static method snippet::getSnippet() should not be called statically in /home/dreaminc/public_html/home/include/include.snippet.php on line 100

Strict Standards: Non-static method snippet::checkSnippet() should not be called statically in /home/dreaminc/public_html/home/include/include.snippet.php on line 126

Strict Standards: Non-static method snippet::getSnippet() should not be called statically in /home/dreaminc/public_html/home/include/include.snippet.php on line 100

Strict Standards: Non-static method snippet::checkSnippet() should not be called statically in /home/dreaminc/public_html/home/include/include.snippet.php on line 126

Strict Standards: Non-static method snippet::getSnippet() should not be called statically in /home/dreaminc/public_html/home/include/include.snippet.php on line 100

Strict Standards: Non-static method snippet::checkSnippet() should not be called statically in /home/dreaminc/public_html/home/include/include.snippet.php on line 126

Strict Standards: Non-static method snippet::getSnippet() should not be called statically in /home/dreaminc/public_html/home/include/include.snippet.php on line 100

Strict Standards: Non-static method snippet::checkSnippet() should not be called statically in /home/dreaminc/public_html/home/include/include.snippet.php on line 126

Strict Standards: Non-static method snippet::getSnippet() should not be called statically in /home/dreaminc/public_html/home/include/include.snippet.php on line 100

Strict Standards: Non-static method snippet::checkSnippet() should not be called statically in /home/dreaminc/public_html/home/include/include.snippet.php on line 126

Strict Standards: Non-static method snippet::getSnippet() should not be called statically in /home/dreaminc/public_html/home/include/include.snippet.php on line 100

Strict Standards: Non-static method snippet::checkSnippet() should not be called statically in /home/dreaminc/public_html/home/include/include.snippet.php on line 126

Strict Standards: Non-static method snippet::getSnippet() should not be called statically in /home/dreaminc/public_html/home/include/include.snippet.php on line 100

Strict Standards: Non-static method snippet::checkSnippet() should not be called statically in /home/dreaminc/public_html/home/include/include.snippet.php on line 126

Strict Standards: Non-static method snippet::getSnippet() should not be called statically in /home/dreaminc/public_html/home/include/include.snippet.php on line 100

Strict Standards: Non-static method snippet::checkSnippet() should not be called statically in /home/dreaminc/public_html/home/include/include.snippet.php on line 126

Strict Standards: Non-static method snippet::getSnippet() should not be called statically in /home/dreaminc/public_html/home/include/include.snippet.php on line 100

Strict Standards: Non-static method snippet::checkSnippet() should not be called statically in /home/dreaminc/public_html/home/include/include.snippet.php on line 126

Strict Standards: Non-static method snippet::getSnippet() should not be called statically in /home/dreaminc/public_html/home/include/include.snippet.php on line 100

Strict Standards: Non-static method snippet::checkSnippet() should not be called statically in /home/dreaminc/public_html/home/include/include.snippet.php on line 126

Strict Standards: Non-static method snippet::getSnippet() should not be called statically in /home/dreaminc/public_html/home/include/include.snippet.php on line 100

Strict Standards: Non-static method snippet::checkSnippet() should not be called statically in /home/dreaminc/public_html/home/include/include.snippet.php on line 126


  1  2  3  >  »  


Strict Standards: Non-static method category::getCategoryDetails() should not be called statically in /home/dreaminc/public_html/home/include/include.tpl.func.php on line 20

Strict Standards: Non-static method category::checkCategory() should not be called statically in /home/dreaminc/public_html/home/include/include.category.php on line 15

Strict Standards: Non-static method category::getCategoryDetails() should not be called statically in /home/dreaminc/public_html/home/include/include.tpl.func.php on line 20

Strict Standards: Non-static method category::checkCategory() should not be called statically in /home/dreaminc/public_html/home/include/include.category.php on line 15

Strict Standards: Non-static method category::getCategoryDetails() should not be called statically in /home/dreaminc/public_html/home/include/include.tpl.func.php on line 20

Strict Standards: Non-static method category::checkCategory() should not be called statically in /home/dreaminc/public_html/home/include/include.category.php on line 15

Strict Standards: Non-static method category::getCategoryDetails() should not be called statically in /home/dreaminc/public_html/home/include/include.tpl.func.php on line 20

Strict Standards: Non-static method category::checkCategory() should not be called statically in /home/dreaminc/public_html/home/include/include.category.php on line 15

Strict Standards: Non-static method category::getCategoryDetails() should not be called statically in /home/dreaminc/public_html/home/include/include.tpl.func.php on line 20

Strict Standards: Non-static method category::checkCategory() should not be called statically in /home/dreaminc/public_html/home/include/include.category.php on line 15

Strict Standards: Non-static method category::getCategoryDetails() should not be called statically in /home/dreaminc/public_html/home/include/include.tpl.func.php on line 20

Strict Standards: Non-static method category::checkCategory() should not be called statically in /home/dreaminc/public_html/home/include/include.category.php on line 15

Strict Standards: Non-static method category::getCategoryDetails() should not be called statically in /home/dreaminc/public_html/home/include/include.tpl.func.php on line 20

Strict Standards: Non-static method category::checkCategory() should not be called statically in /home/dreaminc/public_html/home/include/include.category.php on line 15

Strict Standards: Non-static method category::getCategoryDetails() should not be called statically in /home/dreaminc/public_html/home/include/include.tpl.func.php on line 20

Strict Standards: Non-static method category::checkCategory() should not be called statically in /home/dreaminc/public_html/home/include/include.category.php on line 15

Strict Standards: Non-static method category::getCategoryDetails() should not be called statically in /home/dreaminc/public_html/home/include/include.tpl.func.php on line 20

Strict Standards: Non-static method category::checkCategory() should not be called statically in /home/dreaminc/public_html/home/include/include.category.php on line 15

Strict Standards: Non-static method category::getCategoryDetails() should not be called statically in /home/dreaminc/public_html/home/include/include.tpl.func.php on line 20

Strict Standards: Non-static method category::checkCategory() should not be called statically in /home/dreaminc/public_html/home/include/include.category.php on line 15

Strict Standards: Non-static method category::getCategoryDetails() should not be called statically in /home/dreaminc/public_html/home/include/include.tpl.func.php on line 20

Strict Standards: Non-static method category::checkCategory() should not be called statically in /home/dreaminc/public_html/home/include/include.category.php on line 15

Strict Standards: Non-static method category::getCategoryDetails() should not be called statically in /home/dreaminc/public_html/home/include/include.tpl.func.php on line 20

Strict Standards: Non-static method category::checkCategory() should not be called statically in /home/dreaminc/public_html/home/include/include.category.php on line 15

Strict Standards: Non-static method category::getCategoryDetails() should not be called statically in /home/dreaminc/public_html/home/include/include.tpl.func.php on line 20

Strict Standards: Non-static method category::checkCategory() should not be called statically in /home/dreaminc/public_html/home/include/include.category.php on line 15

Strict Standards: Non-static method category::getCategoryDetails() should not be called statically in /home/dreaminc/public_html/home/include/include.tpl.func.php on line 20

Strict Standards: Non-static method category::checkCategory() should not be called statically in /home/dreaminc/public_html/home/include/include.category.php on line 15

Strict Standards: Non-static method category::getCategoryDetails() should not be called statically in /home/dreaminc/public_html/home/include/include.tpl.func.php on line 20

Strict Standards: Non-static method category::checkCategory() should not be called statically in /home/dreaminc/public_html/home/include/include.category.php on line 15

Strict Standards: Non-static method category::getCategoryDetails() should not be called statically in /home/dreaminc/public_html/home/include/include.tpl.func.php on line 20

Strict Standards: Non-static method category::checkCategory() should not be called statically in /home/dreaminc/public_html/home/include/include.category.php on line 15

Strict Standards: Non-static method category::getCategoryDetails() should not be called statically in /home/dreaminc/public_html/home/include/include.tpl.func.php on line 20

Strict Standards: Non-static method category::checkCategory() should not be called statically in /home/dreaminc/public_html/home/include/include.category.php on line 15

Strict Standards: Non-static method category::getCategoryDetails() should not be called statically in /home/dreaminc/public_html/home/include/include.tpl.func.php on line 20

Strict Standards: Non-static method category::checkCategory() should not be called statically in /home/dreaminc/public_html/home/include/include.category.php on line 15

Strict Standards: Non-static method category::getCategoryDetails() should not be called statically in /home/dreaminc/public_html/home/include/include.tpl.func.php on line 20

Strict Standards: Non-static method category::checkCategory() should not be called statically in /home/dreaminc/public_html/home/include/include.category.php on line 15

Strict Standards: Non-static method category::getCategoryDetails() should not be called statically in /home/dreaminc/public_html/home/include/include.tpl.func.php on line 20

Strict Standards: Non-static method category::checkCategory() should not be called statically in /home/dreaminc/public_html/home/include/include.category.php on line 15

Strict Standards: Non-static method category::getCategoryDetails() should not be called statically in /home/dreaminc/public_html/home/include/include.tpl.func.php on line 20

Strict Standards: Non-static method category::checkCategory() should not be called statically in /home/dreaminc/public_html/home/include/include.category.php on line 15

Strict Standards: Non-static method category::getCategoryDetails() should not be called statically in /home/dreaminc/public_html/home/include/include.tpl.func.php on line 20

Strict Standards: Non-static method category::checkCategory() should not be called statically in /home/dreaminc/public_html/home/include/include.category.php on line 15

Strict Standards: Non-static method category::getCategoryDetails() should not be called statically in /home/dreaminc/public_html/home/include/include.tpl.func.php on line 20

Strict Standards: Non-static method category::checkCategory() should not be called statically in /home/dreaminc/public_html/home/include/include.category.php on line 15

Strict Standards: Non-static method category::getCategoryDetails() should not be called statically in /home/dreaminc/public_html/home/include/include.tpl.func.php on line 20

Strict Standards: Non-static method category::checkCategory() should not be called statically in /home/dreaminc/public_html/home/include/include.category.php on line 15

Strict Standards: Non-static method category::getCategoryDetails() should not be called statically in /home/dreaminc/public_html/home/include/include.tpl.func.php on line 20

Strict Standards: Non-static method category::checkCategory() should not be called statically in /home/dreaminc/public_html/home/include/include.category.php on line 15
Submitted: September 18, 2012        Views: 172

Strict Standards: Non-static method bbcode::parse() should not be called statically in /home/dreaminc/public_html/home/include/include.tpl.func.php on line 57

Strict Standards: Non-static method bbcode::add() should not be called statically in /home/dreaminc/public_html/code/bbcode.conf.php on line 16
This snippet of code will open up a text file, read in two lines of text, and then find the longest common substring (LCS) between the two lines of code.
Submitted: October 1, 2012        Views: 473

Strict Standards: Non-static method bbcode::parse() should not be called statically in /home/dreaminc/public_html/home/include/include.tpl.func.php on line 57

Strict Standards: Non-static method bbcode::add() should not be called statically in /home/dreaminc/public_html/code/bbcode.conf.php on line 16
A generic linked list implemented with void pointers
Submitted: August 10, 2012        Views: 841

Strict Standards: Non-static method bbcode::parse() should not be called statically in /home/dreaminc/public_html/home/include/include.tpl.func.php on line 57

Strict Standards: Non-static method bbcode::add() should not be called statically in /home/dreaminc/public_html/code/bbcode.conf.php on line 16
This function will return the Nth root of any number
Submitted: July 10, 2012        Views: 821

Strict Standards: Non-static method bbcode::parse() should not be called statically in /home/dreaminc/public_html/home/include/include.tpl.func.php on line 57

Strict Standards: Non-static method bbcode::add() should not be called statically in /home/dreaminc/public_html/code/bbcode.conf.php on line 16
Given a double "a", and an integer "n", this function will round the double to n decimal places. This solution is not optimal, but it does what it needs to do.
Submitted: August 12, 2006        Views: 38125

Strict Standards: Non-static method bbcode::parse() should not be called statically in /home/dreaminc/public_html/home/include/include.tpl.func.php on line 57

Strict Standards: Non-static method bbcode::add() should not be called statically in /home/dreaminc/public_html/code/bbcode.conf.php on line 16
This program uses a simple method developed by Eratosthenes(Greek mathematician). Basically u select a number an strike of all its multiplies. then u go to the next number n so on till u reach the end. What ure left with r prime numbers.
Submitted: April 9, 2012        Views: 709

Strict Standards: Non-static method bbcode::parse() should not be called statically in /home/dreaminc/public_html/home/include/include.tpl.func.php on line 57

Strict Standards: Non-static method bbcode::add() should not be called statically in /home/dreaminc/public_html/code/bbcode.conf.php on line 16
_atoi takes a null terminated string and returns the integral representation. Only base 10 (decimal) values are supported and the string should contain one continous sequence of numbers (although other characters will be ignored).
Submitted: February 15, 2012        Views: 334

Strict Standards: Non-static method bbcode::parse() should not be called statically in /home/dreaminc/public_html/home/include/include.tpl.func.php on line 57

Strict Standards: Non-static method bbcode::add() should not be called statically in /home/dreaminc/public_html/code/bbcode.conf.php on line 16
This code calculates the fractional part of a decimal number with arbitrary precision (up to 32-bits). C floats are used for arithmetic purposes, although the integer portion is ignored. Note that the resultant binary value does not conform to any floating point standard (such as IEEE 754), it just gives the value "as is".
Submitted: January 18, 2012        Views: 952

Strict Standards: Non-static method bbcode::parse() should not be called statically in /home/dreaminc/public_html/home/include/include.tpl.func.php on line 57

Strict Standards: Non-static method bbcode::add() should not be called statically in /home/dreaminc/public_html/code/bbcode.conf.php on line 16
This is a HexDump -- a very clean, approximately 175 line implementation. It only utilizes one 16-byte buffer, so it is memory efficient. Written in pure C.
Submitted: October 2, 2011        Views: 447

Strict Standards: Non-static method bbcode::parse() should not be called statically in /home/dreaminc/public_html/home/include/include.tpl.func.php on line 57

Strict Standards: Non-static method bbcode::add() should not be called statically in /home/dreaminc/public_html/code/bbcode.conf.php on line 16
Algorithm for rotating a variable.
Submitted: October 1, 2011        Views: 419

Strict Standards: Non-static method bbcode::parse() should not be called statically in /home/dreaminc/public_html/home/include/include.tpl.func.php on line 57

Strict Standards: Non-static method bbcode::add() should not be called statically in /home/dreaminc/public_html/code/bbcode.conf.php on line 16
I've no idea if this swap algorithm exists elsewhere, but this is one I derived myself, and, well, it works very well. It can be used on the same variable even, even same location in the same variable, works with swapping 0 and 1, 0 and 0, and 1 and 1, so, everything. It does use three variables, but the simplicity of this is enough to compensate.
Submitted: August 21, 2011        Views: 1182

Strict Standards: Non-static method bbcode::parse() should not be called statically in /home/dreaminc/public_html/home/include/include.tpl.func.php on line 57

Strict Standards: Non-static method bbcode::add() should not be called statically in /home/dreaminc/public_html/code/bbcode.conf.php on line 16
Proof of concept to display text in the console in a Matrix-movie-esque kind of way. Cycle through the alphabet until letter is reached then moving on to the next. (Had a little trouble putting this into words.)
Submitted: July 25, 2011        Views: 922

Strict Standards: Non-static method bbcode::parse() should not be called statically in /home/dreaminc/public_html/home/include/include.tpl.func.php on line 57

Strict Standards: Non-static method bbcode::add() should not be called statically in /home/dreaminc/public_html/code/bbcode.conf.php on line 16
These are two functions you can use to evaluate if an integer is even or odd.
Submitted: July 25, 2011        Views: 907

Strict Standards: Non-static method bbcode::parse() should not be called statically in /home/dreaminc/public_html/home/include/include.tpl.func.php on line 57

Strict Standards: Non-static method bbcode::add() should not be called statically in /home/dreaminc/public_html/code/bbcode.conf.php on line 16
These are two functions you can use to generate random even or odd numbers within a range.
Submitted: July 14, 2011        Views: 358

Strict Standards: Non-static method bbcode::parse() should not be called statically in /home/dreaminc/public_html/home/include/include.tpl.func.php on line 57

Strict Standards: Non-static method bbcode::add() should not be called statically in /home/dreaminc/public_html/code/bbcode.conf.php on line 16
These are 3 different swap methods that can be used to swap two variables. These do not use ASM as one of the other snippets used.
Submitted: July 11, 2011        Views: 823

Strict Standards: Non-static method bbcode::parse() should not be called statically in /home/dreaminc/public_html/home/include/include.tpl.func.php on line 57

Strict Standards: Non-static method bbcode::add() should not be called statically in /home/dreaminc/public_html/code/bbcode.conf.php on line 16
This function will return an random integer within a specified range. The output is inclusive-- this means from the base to the lowest (including the base and limit).
Submitted: July 11, 2011        Views: 1055

Strict Standards: Non-static method bbcode::parse() should not be called statically in /home/dreaminc/public_html/home/include/include.tpl.func.php on line 57

Strict Standards: Non-static method bbcode::add() should not be called statically in /home/dreaminc/public_html/code/bbcode.conf.php on line 16
This is an alternative power function using an iterative method.
Submitted: May 30, 2011        Views: 1227

Strict Standards: Non-static method bbcode::parse() should not be called statically in /home/dreaminc/public_html/home/include/include.tpl.func.php on line 57

Strict Standards: Non-static method bbcode::add() should not be called statically in /home/dreaminc/public_html/code/bbcode.conf.php on line 16
Code to convert a decimal into its equivalent Roman numeral string.
Submitted: May 28, 2011        Views: 917

Strict Standards: Non-static method bbcode::parse() should not be called statically in /home/dreaminc/public_html/home/include/include.tpl.func.php on line 57

Strict Standards: Non-static method bbcode::add() should not be called statically in /home/dreaminc/public_html/code/bbcode.conf.php on line 16
This code gives you the number of digits in an signed long. It completely eliminates the requirement to use loops to successively divide and mod by ten which is often an unreliable method.
Submitted: March 18, 2011        Views: 726

Strict Standards: Non-static method bbcode::parse() should not be called statically in /home/dreaminc/public_html/home/include/include.tpl.func.php on line 57

Strict Standards: Non-static method bbcode::add() should not be called statically in /home/dreaminc/public_html/code/bbcode.conf.php on line 16
Read a file one line at a time and store it as a character string. I wrote this function as part of an HTML parser where I needed to read a line in and then do further parsing and editing of the text.
Submitted: March 13, 2011        Views: 474

Strict Standards: Non-static method bbcode::parse() should not be called statically in /home/dreaminc/public_html/home/include/include.tpl.func.php on line 57

Strict Standards: Non-static method bbcode::add() should not be called statically in /home/dreaminc/public_html/code/bbcode.conf.php on line 16
a little a hack i made for handling variable arguments in C for the cdecl calling convention
Submitted: December 31, 2010        Views: 583

Strict Standards: Non-static method bbcode::parse() should not be called statically in /home/dreaminc/public_html/home/include/include.tpl.func.php on line 57

Strict Standards: Non-static method bbcode::add() should not be called statically in /home/dreaminc/public_html/code/bbcode.conf.php on line 16
Plays infinite generations of Conway's Game of Life.
Submitted: February 18, 2011        Views: 1005

Strict Standards: Non-static method bbcode::parse() should not be called statically in /home/dreaminc/public_html/home/include/include.tpl.func.php on line 57

Strict Standards: Non-static method bbcode::add() should not be called statically in /home/dreaminc/public_html/code/bbcode.conf.php on line 16
Takes an input in infix format and converts it to postfix notation and makes an expression tree out of it. Wrong inputs (unmatched parentheses) break the program (cause it to exit). Recognizes multiple letters/numbers as single operands eg 24-55 understands that 24 and 55 are individual operands.
Submitted: January 6, 2011        Views: 1135

Strict Standards: Non-static method bbcode::parse() should not be called statically in /home/dreaminc/public_html/home/include/include.tpl.func.php on line 57

Strict Standards: Non-static method bbcode::add() should not be called statically in /home/dreaminc/public_html/code/bbcode.conf.php on line 16
Prints the amount of screens connected to a dsiplay.
Submitted: January 31, 2011        Views: 1923

Strict Standards: Non-static method bbcode::parse() should not be called statically in /home/dreaminc/public_html/home/include/include.tpl.func.php on line 57

Strict Standards: Non-static method bbcode::add() should not be called statically in /home/dreaminc/public_html/code/bbcode.conf.php on line 16
This is a basic implementation of Stack in C using linked lists ... This snippet uses 2 functions... 1. pop = simply pops the data from the top of the stack 2. push = simply pushes the data on the top of the stack
Submitted: January 1, 2011        Views: 393

Strict Standards: Non-static method bbcode::parse() should not be called statically in /home/dreaminc/public_html/home/include/include.tpl.func.php on line 57

Strict Standards: Non-static method bbcode::add() should not be called statically in /home/dreaminc/public_html/code/bbcode.conf.php on line 16
an example witch shows how you can create templated struct's in c using macros. note: this isn't strictly supported by ISO C90
  1  2  3  >  »  


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



Strict Standards: Non-static method members::isDicpp() should not be called statically in /home/dreaminc/public_html/home/templates2/copyright.php on line 77

Strict Standards: Non-static method members::isMember() should not be called statically in /home/dreaminc/public_html/home/include/class.member.php on line 16

Strict Standards: Non-static method ipb_interface::getUserId() should not be called statically in /home/dreaminc/public_html/home/include/class.member.php on line 10

Strict Standards: Non-static method ipb_interface::checkUserId() should not be called statically in /home/dreaminc/public_html/home/include/class.member.php on line 10

Strict Standards: Non-static method ads::isAdCompatible() should not be called statically in /home/dreaminc/public_html/home/templates2/copyright.php on line 77