Linux Today: Linux News On Internet Time.

LinuxProgramming.com: SourceLib: Two New Code Samples Are Available

Jan 24, 2001, 21:44 (0 Talkback[s])
(Other stories by Lou Grinzo)

Two new code samples have been added to SourceLib:

Name: random3
Category: Basics
Purpose: Use random numbers from the rand() function to generate random integers in a specified range.
Keywords: C stdlib.h time.h srand rand

Name: gcc_struct_packing
Category: Misc
Purpose: Packing fields in structures on specific boundaries, including single bytes, i.e. with no internal padding.
Keywords: C stdlib.h struct aligned attribute packed

If you'd like to learn more about SourceLib or contribute to it, see the following resources:

The original announcement and overview

Submission guidelines

Suggested topics list

If you'd like to send us some suggestions or comments about SourceLib (or anything else on LinuxProgramming.com, for that matter), please feel free to e-mail me directly at the address below.

Take care,
Lou Grinzo
Editor, LinuxProgramming.com