Thread: FIFO
View Single Post
  #3 (permalink)  
Old March 20th, 2004, 03:32 PM
davekw7x davekw7x is offline
Authorized User
 
Join Date: Feb 2004
Posts: 76
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Did your compiler complain about your function instructions()? Sometimes compiler messages are somewhat cryptic (to the uninitiated, and here's your initiation).

Anyhow, when you use a function and you haven't told C anything about it, C assumes that it is a function that returns an int, and all of its arguments (if any) are ints. Does this make the compiler warnings/errors more clear?

Put a prototype of instructions() before it is invoked.

Then see if there are any other compiler messages.

No?, then on to testing/debugging.

Good luck,

Dave
Reply With Quote