Welcome To Snipplr


Everyone's Recent C Snippets



0 79 posted 9 years ago by CyKy
0 82 posted 10 years ago by oznek
0 100 posted 10 years ago by khajavi
i want to use it later
0 78 posted 10 years ago by iLLUMIN
0 230 posted 10 years ago by sukantahazra
Skeleton daemon process for unix
0 113 posted 10 years ago by sukantahazra
0 103 posted 10 years ago by sukantahazra
0 108 posted 10 years ago by sebastianf
Example code to exercise a Crystalfontz 533 display from a 8051 using Keil C51.
0 139 posted 10 years ago by jimfred
From Keil C51 examples, TEST.C: ISD51 Demo for TI MSC 1210. Polled (non-interrupt) mode. Work-around for dropped-characters related to stop-bit problem: Clear SCON1.5 (or SM2_1).
0 120 posted 10 years ago by jimfred
This program show two columns of temperature. In left - t of celsius, in right - t. of fahr.
0 87 posted 10 years ago by iLLUMIN
The original string (str) will be changed after calling this function, so if you need it make a copy of it.
0 178 posted 10 years ago by Menda
Full Mac OS X system version Returns the full Mac OS X system version, as MMmmff Example: * 10.0.1 returns 100001 * 10.4.2 returns 100402 * 10.4.11 returns 100411 * 10.5.3 returns 100503 It's different from gestaltSystemVersion in that...
0 99 posted 10 years ago by Zydeco
0 111 posted 10 years ago by tandouri
CGI
0 109 posted 10 years ago by renatoelias
<pre> To compile $ gcc -lXtst -lX11 Util_KeyPressSimulator.c To create shared library $ gcc -lXtst -lX11 -c Util_KeyPressSimulator.c -o Util_KeyPressSimulator.o $ gcc -lXtst -lX11 -shared -o Util_KeyPressSimulator.so Util_KeyPressSimulator.o...
0 110 posted 11 years ago by wearetherock
Compile, put exe in cgi-bin folder, and post form data to it.
0 125 posted 11 years ago by Zufolek
for checking the cmdargs
0 101 posted 11 years ago by tandouri
for cmdparsing
0 218 posted 11 years ago by tandouri
Makes a mono 8-bit (i.e. one byte per sample) wav file, "out.wav" containing a 500 Hertz sine wave signal. 22050 is the sample rate, and 64000 is the total size of audio data in bytes.
1 137 posted 11 years ago by Zufolek
loadfile(filename); returns NULL on fail or a pointer that should be free()d when no longer needed. savefile(filename,data,dataSize); returns 0 on fail or 1 on success.
0 155 posted 11 years ago by Zufolek
0 68 posted 11 years ago by edgsv
/** * @brief 给定n个整数,求一个最小的数,使得它们除以这个数的余数不重复 * @author soulmachine * @param[in] numbers 整数数组 * @param[in] count 整数个数 * @param[in] max_norm 模的最大值 * @return...
0 251 posted 11 years ago by soulmachine