version 1.90 | | version 1.91 |
---|
| | |
/* | | /* |
* static char *rcsid_spell_util_c = | | * static char *rcsid_spell_util_c = |
* "$Id: spell_util.c,v 1.90 2005/01/12 08:04:02 mwedel Exp $"; | | * "$Id: spell_util.c,v 1.91 2005/04/27 21:43:29 ryo_saeba Exp $"; |
*/ | | */ |
| | |
| | |
| | |
* as an existing spell, we presume they know it. | | * as an existing spell, we presume they know it. |
* returns 1 if they know the spell, 0 if they don't. | | * returns 1 if they know the spell, 0 if they don't. |
*/ | | */ |
object *check_spell_known (object *op, char *name) | | object *check_spell_known (object *op, const char *name) |
{ | | { |
object *spop; | | object *spop; |
| | |
| | |
* exact match, we also return NULL. | | * exact match, we also return NULL. |
*/ | | */ |
| | |
object *lookup_spell_by_name(object *op,char *spname) { | | object *lookup_spell_by_name(object *op,const char *spname) { |
object *spob1=NULL, *spob2=NULL, *spob; | | object *spob1=NULL, *spob2=NULL, *spob; |
int nummatch=0; | | int nummatch=0; |
| | |