Scraps tagged 'C'

Scrap User Syntax License Created Updated
C Signal Handler A quick demo of how to catch and handle signals in C/C++
tags: c c++ signal
tagged 'C' by thech0s3n0n3 C Public Domain 11 Jan 2010 8 years, 9 months ago
isadir Tests whether a given path is a directory (or a symlink to a directory)
tagged 'C' by jwodder C Public Domain 11 Jan 2010 8 years, 9 months ago
issymlink Tests whether a given path is a symbolic link
tagged 'C' by jwodder C Public Domain 11 Jan 2010 8 years, 9 months ago
wide2utf Converts a Unicode codepoint to its UTF-8 representation
tagged 'C' by jwodder C Public Domain 11 Jan 2010 8 years, 9 months ago
utf2wide Converts UTF-8 byte sequences into Unicode codepoints
tagged 'C' by jwodder C Public Domain 11 Jan 2010 8 years, 9 months ago
memndup Allocates a copy of an arbitrary byte sequence
tagged 'C' by jwodder C Public Domain 11 Jan 2010 8 years, 9 months ago
shuffleArray Randomly rearrange the contents of an array
tagged 'C' by jwodder C Public Domain 11 Jan 2010 8 years, 9 months ago
parseEscapes Parse common escape sequences in a string
tagged 'C' by jwodder C Public Domain 11 Jan 2010 8 years, 9 months ago
fileExists Tests whether a given file path exists
tagged 'C' by jwodder C Public Domain 11 Jan 2010 8 years, 9 months ago
lowestBitSet Returns the index of the lowest bit set in an int
tags: bit bits bitwise C set
tagged 'C' by jwodder C Public Domain 11 Jan 2010 8 years, 9 months ago
highestBitSet Returns the index of the highest bit set in an int
tags: bit bits bitwise C set
tagged 'C' by jwodder C Public Domain 11 Jan 2010 8 years, 9 months ago
bitqtyset Counts the number of bits set in an int
tags: bit bits bitwise C set
tagged 'C' by jwodder C Public Domain 11 Jan 2010 8 years, 9 months ago
ungets Pushes a NUL-terminated string back into an input stream; returns the number of characters ungotten
tagged 'C' by jwodder C Public Domain 11 Jan 2010 8 years, 9 months ago
UTF-16 surrogatization Converts between Unicode codepoints and UTF-16 surrogate pairs
tagged 'C' by jwodder C Public Domain 10 Jan 2010 8 years, 9 months ago
mandelPoint.c Determine how many iterations of the Mandelbrot function it takes a point to escape
tagged 'C' by jwodder C Public Domain 13 Jan 2010 8 years, 9 months ago
bellrand.c Randomly generate a number with a normal distribution
tagged 'C' by jwodder C Public Domain 12 Jan 2010 8 years, 9 months ago
gcd.c Greatest common denominator/divisor function in C
tags: C GCD math
tagged 'C' by jwodder C Public Domain 13 Jan 2010 8 years, 9 months ago
modInverse.c Calculate the multiplicative inverse of `a` modulo `n`
tagged 'C' by jwodder C Public Domain 13 Jan 2010 8 years, 9 months ago
Factorial, combinations, & permutations Calculate factorials, combinations, & permutations in C
tagged 'C' by jwodder C Public Domain 13 Jan 2010 8 years, 9 months ago
tcpConnect.c Create a TCP connection in POSIX C
tagged 'C' by jwodder C Public Domain 15 Jan 2010 8 years, 9 months ago

Page:

1