Skip to content
The SNIPPETS C and C++ Source Code Archives
C C++ Groff Assembly Makefile Awk Other
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
bget
.gitignore
2dlife.c
8087_sav.asm
HISTORY.txt
README.md
a2e.c
a2e.h
absdisk.asm
absdiskc.c
addhndls.c
addpath.c
addtime.c
adjscrol.c
amalloc.c
ansicode.h
ansiflen.c
ansiload.c
ansiload.h
ansiself.c
ansisys.cpp
ansisys.hpp
ansisys.txt
ansitest.c
approx.c
arccrc16.c
archive.cpp
archive.hpp
ascii.h
asmcnvrt.awk
assignpr.c
atr2ansi.c
avatar.cpp
avatar.hpp
b-license.txt
bacstd.h
bascnvrt.c
bastrngs.c
bastrngs.h
bc_rand.h
bcdd.c
bcdd.doc
bcdl.c
bhamdemo.c
big_mall.h
bigfac.c
bignum.h
bignum1.c
bignum2.c
bigtest.c
bincomp.c
binsrch.c
binsrch.h
biport.c
biport.h
bitarray.c
bitcnt_1.c
bitcnt_2.c
bitcnt_3.c
bitcnt_4.c
bitcnts.c
bitfiles.c
bitops.h
bitops.how
bitstrng.c
bmhasrch.c
bmhisrch.c
bmhsrch.c
bodymass.c
bordcolr.c
break.c
bresnham.c
bresnham.h
bstr_i.c
bstuff.h
btree.c
btree.mak
bushv055.txt
c_cmnt.c
c_faq.nfo
c_lines.awk
c_port.txt
c_prec.txt
cal.c
cards.cpp
cards.hpp
cast.h
cbtrap.asm
ccard.c
ccard.h
ccardplv.h
cchar.hpp
ccomcall.c
cctrap.asm
cdir.c
center.c
cerrinst.asm
cerrtrap.asm
cfg.c
cfg.h
cfg.tst
changprn.c
chbytes.c
checkexe.c
checksum.c
chgext.c
chkreg.c
chmod.c
circbuf.hpp
clock.h
cmdline.c
cmpstr.c
cmtconvr.cpp
cmtconvr.h
cmtconvr.txt
cmtcount.cpp
cmtcount.h
cmtparsr.cpp
cmtparsr.h
cmtremov.cpp
cmtremov.h
cmttests.c
cmtxtrac.cpp
cmtxtrac.h
combin.c
commaflt.c
commafmt.c
commconv.c
comments.cpp
compile.bat
compile.cmd
compiler.c
copyrite.nfo
cpp_faq.txt
cpuid.asm
crc.cpp
crc.h
crc.hpp
crc.txt
crc_16.c
crc_16f.c
crc_32.c
credits.lst
csplit.c
csplit.h
cstorage.txt
ctrlprnt.c
ctrlprnt.h
cubic.c
cursize.c
cursor.c
cursor.h
date.cpp
date.hpp
date__.c
datedemo.cpp
datetime.h
daynum.c
dbl2long.c
dblround.c
dblround.how
decompil.txt
delay.c
delay.h
deque.c
deque.h
dirent.h
dirmask.c
dirport.c
dirport.h
dirport.how
disk_sn.c
disk_sn.h
do.c
doansi.h
doansi_1.c
doansi_2.c
dos5boot.h
doscopy.c
dosfiles.h
dosfrmat.c
dosgetch.asm
dosgetch.h
dossort.c
dow.c
drivsrch.c
drvalid.c
drvs.c
dspclock.c
dspdtst.c
dspdtst.out
dtotp6.c
dtotp6.h
dvideo.c
dvideo.h
dvidport.c
dvidport.h
easter.c
editgets.c
editgets.h
ems.c
ems.h
emstest.c
eng.c
enums.txt
environ.txt
err_exit.c
errfix.c
errors.h
etphi.c
eval.c
eval.how
except.doc
existsx.c
ext_keys.c
ext_keys.h
extkword.h
factor.c
factoryl.c
faskbhit.c
faskbhit.how
favail.c
fchsize.c
fcompare.c
fdate.c
ferrorf.c
fibo.c
filcount.c
file_id.diz
filecat.c
filecat.h
filelist.c
filelist.h
files.c
filnames.h
fln_fix.c
flnorm.c
flopcopy.c
fmemmem.c
fmemops.c
fmemops.h
fmtmoney.c
fndislot.c
fnsplit.c
fopenx.c
fork.c
fork.h
fork.man
format.c
format.h
fpswitch.c
fptr_add.c
fraction.c
frand.c
fscanbin.c
fscanbin.h
fscrnsav.c
fsif.c
fsm.c
fsm.h
fsm_demo.c
ftime.c
ftime.h
fupdate.c
getcmt.c
getdcwd.c
getopts.c
getopts.h
getopts.man
getoptsl.c
getoptsl.h
getoptsl.man
getoptst.c
getseg.h
getstrng.c
getvol.c
getyn.c
glbl_env.c
grafline.c
grep.c
hamlet.c
hash.c
hash.h
head.c
hexdump.c
hexorint.c
hilobyte.h
hires.asm
howdy.c
hstr_i.c
hugeread.c
hugesort.c
hungnote.txt
ifactor.c
inchcvrt.c
index.c
indxlook.h
ini.c
ini.h
initvars.c
initvars.h
initvars.tst
int2e.asm
int2e.h
intel.h
iostutor.txt
ipow.c
iscdrom.c
iscons.c
isdst.c
isfopen.c
isisbn.c
isisbn.h
isnetdr.c
ispow2.c
isqrt.c
isramdsk.c
isshare.c
isshift.c
iswprot.c
isxkbrd.c
jdn_l.c
jgrep.c
jmalloc.c
jmalloc.h
jnew.cpp
jnew.h
joystick.c
kb_data.h
kb_stuff.c
kbflip.c
kbtrap.c
kbtrap.h
keylocks.c
keywatch.c
killff.c
knuran.c
krnldemo.c
l2roman.c
ldfloor.c
librarys.nfo
license.mfl
line.c
list.cpp
list.hpp
ll_defs.h
ll_demo.c
ll_msort.c
ll_qsort.c
ll_que.h
ll_stack.h
lld.c
lld.h
lld_blob.c
lld_blob.h
lld_str.h
llist.nts
lls.c
lls.h
lls_blob.c
lls_blob.h
lls_str.h
locdfmt.cpp
locfmt.cpp
loctfmt.cpp
loctm.cpp
loctm.h
log.c
logscale.c
lookup.c
lsd.c
lsd.map
ltoa.c
ltostr.c
lttest.cpp
lv1ws.c
lzhuf.c
mainmain.c
maintest.bat
maintest.c
make.ini
makefile
makefile.bcc
makefile.cyg
makefile.djg
makefile.dos
makefile.emo
makefile.emx
makefile.qcc
makefile.w16
makefile.w32
makefile.wat
makefile.wnt
match.c
match.doc
match.h
mathstat.c
mathstat.h
maxline.c
maze_1.c
maze_2.c
maze_3.c
mcb_env.c
mdalloc.c
mdasort.c
mem.c
mem.h
mem.txt
memavail.c
memmem.c
memrev.c
memrev.h
metaphon.c
metric.h
minmax.h
missing.txt
mk_fp.h
mkdirs.c
mktone.c
mmodels.faq
modemio.c
modemio.h
modulinf.h
modulus.c
moon_age.c
more.c
more.h
moreproc.c
morse.c
mouse.c
mouse.h
ms.bat
msb2ieee.c
mterm.c
mv.c
myio.cpp
myio.h
myio.mak
myiodemo.cpp
myline.cpp
myline.h
mystream.cpp
mystream.h
nlcnvrt.c
ntstream.cpp
ntstream.h
nul!null.txt
numcnvrt.h
nwlinnam.c
opsys.c
opsys.h
ord_text.c
os2_boot.c
os_id.c
os_id.txt
palndrom.c
palnfilt.c
para_faq.txt
parity.c
parity.h
parsdate.c
parstime.c
pbmsrch.c
pchwio.c
pchwio.h
pclrscrn.how
pcnvrt.h
perm_idx.c
permute1.c
permute2.c
pfopen.c
phonetic.h
pi.c
pi.h
pi8.c
pi8.nfo
pi_agm.c
playdemo.c
playlib.c
pluraltx.how
posix.nfo
posix_ls.c
posixdir.c
pr.c
printq.c
prnspool.c
prnspool.h
prntself.c
problems.txt
prtoggle.c
prtscrn.c
prtstat.c
ptrtutor.txt
pushdir.c
qm.bat
qm.cmd
qmenu.c
qmenu.mnu
qq.c
qq.h
qqd.c
qqd.h
query.c
queue.c
queue.h
rad2deg.c
rand1.c
rand2.c
rdxcnvrt.c
read.me
reboot.asm
redirect.c
redirect.h
refcnt.hpp
regit.c
regkey.h
remcmmnt.c
remtab.c
repstr.c
resource.lst
reversi.c
rg_isort.c
rg_qsort.c
rg_rand.c
rg_ssort.c
rgiqsort.c
rlvalue.txt
rm_all.c
rmallws.c
rmlead.c
rmtrail.c
rnd_div.c
rolldice.c
rolldice.h
roman2l.c
round.h
rtlftrul.txt
ruleline.c
saemx.mak
safeminx.c
saw16.mak
saw32.mak
scaldate.c
scaldate.h
scanfrac.c
scrintrp.cpp
scrintrp.hpp
scrnmacs.h
scrnpick.c
scrnsave.c
scroll.c
search.h
seqtouch.c
serial.c
serial.h
setenvar.c
setimeto.c
setlevel.c
setvol.c
shel2dos.c
showansi.cpp
showansi.doc
skiplist.c
snip_str.h
snipfile.h
snipkbio.h
snipmath.h
snippets.(c)
snippets.ndx
snippets.rat
snippets.txt
sniprint.h
snipsort.h
sniptree.c
sniptype.h
snparray.h
snpdosys.h
snpdskio.h
sortkey.h
sorts.txt
sound.c
sound.h
soundex.c
soundex4.c
soundex5.c
speed.c
spigot.c
spin.c
split.c
srchfile.c
sstrcpy.c
sstrdel.c
stack.c
stack.h
stat.h
stats.c
stdstuff.txt
stk.c
stk.h
stk_blob.c
stk_blob.h
stk_defs.h
stk_str.h
storage.typ
stptok.c
str.cpp
str.doc
str.h
str27seg.c
strat.c
strat.h
strcase.c
strchcat.c
strdel.c
strdelch.c
strdup.c
strecpy.asm
strecpy.c
strftime.c
strftime.h
stricmp.c
stringiz.h
stripeof.c
stristr.c
strnsub.c
strrepc.c
strrepl.c
strrev.c
strrpbrk.c
strsort.c
strtrim.c
strtrimc.c
strucfil.c
strucfil.h
strupr.c
stub.c
students.nfo
style.c
sunriseset.c
sunriset.c
t_clean.c
t_clean.doc
tabtrick.c
tail.c
tc15.h
term_opt.c
test.dep
test.ini
testcmt.c
textmod.c
ticktrap.c
ticktrap.h
time__.c
timegetc.c
timer.c
tiresize.c
to4dos.c
toascii.c
today.c
todaybak.c
toolkit.h
tosysops.txt
touch.c
translat.c
trapdemo.c
trapflag.asm
treedir.c
treescan.c
triglib.c
triglib.h
trim.c
truname.c
uclock.c
uclock.h
uclock_.asm
unistd.h
unix2dos.c
unxconio.h
unxgetch.c
unxsleep.c
update.c
update.h
uudecode.c
uuencode.c
uusyntax.man
vfname.c
vfname.h
vgablank.c
vgablank.h
video.cpp
video.hpp
vidmgr.c
vidmgr.h
vidmgr.txt
vidport.c
vioimage.c
vioimage.h
vmgrdjgp.c
vmgrdos.c
vmgremx.c
vmgros2.c
vmgrwnt.c
vt100.txt
w_wrap.c
w_wrap.h
wb_fapnd.c
wb_fcopy.c
wc.c
weird.c
what.c
whats.new
where.c
which_c.txt
whicharc.cpp
whicharc.doc
whicharc.h
windchil.c
windchil.h
wordwrap.c
wputch.c
x00api.c
x00api.h
xfile.c
xfile.h
xms.c
xms.h
xmstest.c
xstrcat.c
xstrcmp.c
xtest.c
zdate.man

README.md

snippets

The SNIPPETS C and C++ Source Code Archives

The SNIPPETS archive was maintained for years by Bob Stout, but when he died, the snippets.org domain went away.

This is an effort to put the SNIPPETS archive back online.

Patches and additions welcome! Any stand alone C or C++ gist is welcome.

(Patches to make old snippets compile on modern targets, should you find any problem.)

Something went wrong with that request. Please try again.