C Scraps
| Scrap | User | Syntax | License | Created | Updated |
|---|---|---|---|---|---|
|
highestBitSet
Returns the index of the highest bit set in an int
|
jwodder | C | Public Domain | 11 Jan 2010 | 2 years, 4 months ago |
|
modInverse.c
Calculate the multiplicative inverse of `a` modulo `n`
|
jwodder | C | Public Domain | 13 Jan 2010 | 2 years, 4 months ago |
|
C Signal Handler
A quick demo of how to catch and handle signals in C/C++
|
thech0s3n0n3 | C | Public Domain | 11 Jan 2010 | 2 years, 4 months ago |
|
bellrand.c
Randomly generate a number with a normal distribution
|
jwodder | C | Public Domain | 12 Jan 2010 | 2 years, 4 months ago |
|
tcpConnect.c
Create a TCP connection in POSIX C
|
jwodder | C | Public Domain | 15 Jan 2010 | 2 years, 4 months ago |
|
test
test
|
dakotahawkins | C | Public Domain | 10 Jan 2010 | 2 years, 4 months ago |
|
lowestBitSet
Returns the index of the lowest bit set in an int
|
jwodder | C | Public Domain | 11 Jan 2010 | 2 years, 4 months ago |
|
utf2wide
Converts UTF-8 byte sequences into Unicode codepoints
|
jwodder | C | Public Domain | 11 Jan 2010 | 2 years, 4 months ago |
|
gcd.c
Greatest common denominator/divisor function in C
|
jwodder | C | Public Domain | 13 Jan 2010 | 2 years, 4 months ago |
|
Factorial, combinations, & permutations
Calculate factorials, combinations, & permutations in C
|
jwodder | C | Public Domain | 13 Jan 2010 | 2 years, 4 months ago |
|
issymlink
Tests whether a given path is a symbolic link
|
jwodder | C | Public Domain | 11 Jan 2010 | 2 years, 4 months ago |
|
parseEscapes
Parse common escape sequences in a string
|
jwodder | C | Public Domain | 11 Jan 2010 | 2 years, 4 months ago |
|
memndup
Allocates a copy of an arbitrary byte sequence
|
jwodder | C | Public Domain | 11 Jan 2010 | 2 years, 4 months ago |
|
isadir
Tests whether a given path is a directory (or a symlink to a directory)
|
jwodder | C | Public Domain | 11 Jan 2010 | 2 years, 4 months ago |
|
ungets
Pushes a NUL-terminated string back into an input stream; returns the number of characters ungotten
|
jwodder | C | Public Domain | 11 Jan 2010 | 2 years, 4 months ago |
|
UTF-16 surrogatization
Converts between Unicode codepoints and UTF-16 surrogate pairs
|
jwodder | C | Public Domain | 10 Jan 2010 | 2 years, 4 months ago |
|
bitqtyset
Counts the number of bits set in an int
|
jwodder | C | Public Domain | 11 Jan 2010 | 2 years, 4 months ago |
|
wide2utf
Converts a Unicode codepoint to its UTF-8 representation
|
jwodder | C | Public Domain | 11 Jan 2010 | 2 years, 4 months ago |
|
shuffleArray
Randomly rearrange the contents of an array
|
jwodder | C | Public Domain | 11 Jan 2010 | 2 years, 4 months ago |
|
fileExists
Tests whether a given file path exists
|
jwodder | C | Public Domain | 11 Jan 2010 | 2 years, 4 months ago |
|
mandelPoint.c
Determine how many iterations of the Mandelbrot function it takes a point to escape
|
jwodder | C | Public Domain | 13 Jan 2010 | 2 years, 4 months ago |
|
Calculate X,Y Coordinates with Distance and Angle Sensor Data for iRobot Create Command Module
taken from [http://groups.google.com/group/irobot-create-forum/web/calculate-x-y-coordinates-with-distance-and-angle-sensor-data]
|
anakryiko | C | Public Domain | 16 Jan 2010 | 2 years, 3 months ago |
| spottedcow | C | Public Domain | 10 Jan 2010 | 2 years, 4 months ago |
Page:
1