dainank / destiny

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

Home Page:https://en.wikipedia.org/wiki/Fortune_(Unix)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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):

https://en.wikipedia.org/wiki/Fortune_(Unix)


Languages

Language:C 100.0%