Logo Search packages:      
Sourcecode: rarian version File versions

void TiXmlElement::SetAttribute ( const char *  name,
int  value 
)

Sets an attribute of name to a given value. The attribute will be created if it does not exist, or changed if it does.

Definition at line 729 of file tinyxml.cpp.

References SetAttribute().

{     
      char buf[64];
      #if defined(TIXML_SNPRINTF)         
            TIXML_SNPRINTF( buf, sizeof(buf), "%d", val );
      #else
            sprintf( buf, "%d", val );
      #endif
      SetAttribute( name, buf );
}


Generated by  Doxygen 1.6.0   Back to index