<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
 <channel>
  <atom:link href="https://smaugmuds.afkmods.com/index.php?a=rssfeed&amp;t=4775" rel="self" type="application/rss+xml" />
  <title>SmaugMuds - Topic: EXT_BV inside mpcommand</title>
  <link>https://smaugmuds.afkmods.com/index.php?a=rssfeed&amp;t=4775</link>
  <description>The largest Smaug community resource site. - </description>
  <language>en</language>
  <generator>SmaugMuds</generator>
  <ttl>60</ttl>
  <item>
   <title>EXT_BV inside mpcommand</title>
   <link>https://smaugmuds.afkmods.com/topic/extbv-inside-mpcommand-4775/&amp;p=23436#p23436</link>
   <description>I don&#039;t now but... here my first version and it seems work: [codebox] EXT_BV str2xbit( char *arg ) { EXT_BV xbit; int x = 0, n = 0; memset( &amp;amp;xbit, &#039;\0&#039;, sizeof(xbit) ); if ( *arg == &#039;\0&#039; ) return xbit; for ( ; *arg != &#039;\0&#039;; arg++ ) { if ( !isdigit(*arg) ) { FINALIZE: if ( x &amp;lt; XBI ) xbit.bits[x] = n; ++x; n = 0; if ( *arg != &#039;&amp;amp;&#039; ) return xbit; continue; } n = n * 10 + *arg - &#039;0&#039;; } goto FINALIZE; }[/codebox] bye mat</description>
   <guid isPermaLink="true">https://smaugmuds.afkmods.com/topic/extbv-inside-mpcommand-4775/&amp;p=23436#p23436</guid>
   <pubDate>Fri, 11 Apr 2014 19:53:52 CDT</pubDate>
   <category>Coding</category>
   <author>nobody@example.com (Matteo2303)</author>
  </item>
  <item>
   <title>EXT_BV inside mpcommand</title>
   <link>https://smaugmuds.afkmods.com/topic/extbv-inside-mpcommand-4775/&amp;p=23435#p23435</link>
   <description>Hi, If I build a mp_command argument that contain an extended bitvector like: mpdosomething 3&amp;amp;15 how can I convert &amp;quot;3&amp;amp;15&amp;quot; in a EXT_BV var? pseudo-code: do_mpdosomething( CHAR_DATA *ch, char *argument ) { argument = one_argument( argument, arg1 ); EXT_BV bits; xCLEAR( bits ); xSET( bits, ??? ); // ??? = arg1 converted ... but how? return; } Thank you in advance for any help. Bye!</description>
   <guid isPermaLink="true">https://smaugmuds.afkmods.com/topic/extbv-inside-mpcommand-4775/&amp;p=23435#p23435</guid>
   <pubDate>Fri, 11 Apr 2014 15:43:26 CDT</pubDate>
   <category>Coding</category>
   <author>nobody@example.com (Matteo2303)</author>
  </item>
 </channel>
</rss>
