Themuppeteer
Programmer
Hello,
how do I check with X if a color is valid or not ?
I need something like a function isValidColor(char* mycolor);
that returns a 0 when its a good color and something else when its not. like isValidColor("green"
; returns 0 and
isValidColor("somethingelse"
; returns -1 or so...
Can anyone help me ?
thnx!
Greetz,
NOSPAM_themuppeteer@hotmail.com (for mails, remove the NOSPAM_)
"Those who say they understand chess, understand nothing"
-- Robert HUBNER
how do I check with X if a color is valid or not ?
I need something like a function isValidColor(char* mycolor);
that returns a 0 when its a good color and something else when its not. like isValidColor("green"
isValidColor("somethingelse"
Can anyone help me ?
thnx!
Greetz,

NOSPAM_themuppeteer@hotmail.com (for mails, remove the NOSPAM_)
"Those who say they understand chess, understand nothing"
-- Robert HUBNER