|
||
int text_to_color ( char *txt, int *color )
char *txt; // color string int *color; // address of number to receive color number
|
|
|
Synopsis |
#include "silver.h"
The text_to_color function converts the string txt to a color.
|
|
Parameters |
txt is a null-terminated string containing a color string. color is the address of an integer that is to receive the converted color number.
|
|
Return Value |
text_to_color stores the color number into the integer at color and returns 1 if the conversion is successful, and 0 if not.
|
|
See Also |
|
|
|
|