Ok, I have looked over a few online C code tutorials and a
few other sites mentioned in these forums. I am starting to get a decent grasp of the basics *I think*, but am having
trouble actually deciphering certain things. If someone could take this example and explain it to me in detail-
it would help me immensely.
Specifically, what are the functions of '<' and '->' in the
if line.
void do_poison_weapon( CHAR_DATA * ch, char *argument )
{
OBJ_DATA *obj;
OBJ_DATA *pobj;
OBJ_DATA *wobj;
char arg[MAX_INPUT_LENGTH];
int percent;
if( !IS_NPC( ch ) && ch->level < skill_table[gsn_poison_weapon]->skill_level[ch->Class] )
{
send_to_char( "What do you think you are, a thief?\n\r", ch );
return;
}
I understand what the basic function of this code is, but I am trying to understand specifically how it works.. what it checks and how I might go to and check what it references.
Thank You for your time.
few other sites mentioned in these forums. I am starting to get a decent grasp of the basics *I think*, but am having
trouble actually deciphering certain things. If someone could take this example and explain it to me in detail-
it would help me immensely.
Specifically, what are the functions of '<' and '->' in the
if line.
void do_poison_weapon( CHAR_DATA * ch, char *argument )
{
OBJ_DATA *obj;
OBJ_DATA *pobj;
OBJ_DATA *wobj;
char arg[MAX_INPUT_LENGTH];
int percent;
if( !IS_NPC( ch ) && ch->level < skill_table[gsn_poison_weapon]->skill_level[ch->Class] )
{
send_to_char( "What do you think you are, a thief?\n\r", ch );
return;
}
I understand what the basic function of this code is, but I am trying to understand specifically how it works.. what it checks and how I might go to and check what it references.
Thank You for your time.