Description: Gregorian Calendar to Julian Day Number.
The source code for the ANSI C routine Cal2jd is available: