Skip to content

Stii/cshit

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

cshit

Some basic C programs which I do to learn C

You probably don't want to use this as it is newbie code for now, but comments would be appreciated.

What is in it?

ts2d

A command that convert a timestamp to a human readable date string and the other way round.

Needs lots of massaging still. No real checks are done, which must still happen.

To use it, on a *nix filesystem: $ cd ts2d && make dt

isleap

A command that calculates if a year was a leap year. The year must be between 0 9999.

To use it, on a *nix filesystem: $ cd isleap && make leap

Collatz Conjecture (Hailstone sequence)

A program that takes 2 integers as input and print these out together with the longest cycle of an int between the 2 params.

Read the readme.

To use it, on a *nix filesystem: $ cd hailstone && make hail

About

Some basic C programs which I do to learn C

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages