8000 GitHub - dainank/destiny: Cheerful phrases from your computer. Available for Windows only. Based on fortune (Unix):
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
This repository was archived by the owner on Feb 11, 2024. It is now read-only.
/ destiny Public archive

Cheerful phrases from your computer. Available for Windows only. Based on fortune (Unix):

Notifications You must be signed in to change notification settings

dainank/destiny

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Destiny

Like UNIX's Fortune program, with the following requirements:

  1. Obtain number of entries.
  2. Generate random val based on (1).
  3. Fetch random item.
  4. Output phrase.

Various Notes

On src code.

  • Arrays decay to pointers to the first element in the array in C.
  • You cannot pass argv[] without pointer since it would not know the size at compile time.
  • char *argv[] standard decleration for receiving command-line arguments in C.
  • strftime() can be used instead of printf to print strings with time vars.

About

Cheerful phrases from your computer. Available for Windows only. Based on fortune (Unix):

Topics

Resources

Stars

Watchers

Forks

Languages

0