Computer Chess Club Archives


Search

Terms

Messages

Subject: Followup

Author: Daniel Clausen

Date: 08:32:32 08/22/02

Go up one level in this thread


Hmm, the lines
   registerCommand("quit", ENG_quit(), "Quits the program");

should of course be
   registerCommand("quit", ENG_quit, "Quits the program");

"quit"
   is the name of the command read from the input channel (can be a file,
   stdin, a  socket-connection from Finland (even from the US! Hi Matthew! :))

ENG_quit
   a pointer to the function doing the work (like a call-back function)

"Quits the program"
   The description string of the command, which automatically appears
   when you type 'help' in my engine.

Sargon



This page took 0 seconds to execute

Last modified: Thu, 15 Apr 21 08:11:13 -0700

Current Computer Chess Club Forums at Talkchess. This site by Sean Mintz.