    <rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:sy="http://purl.org/rss/1.0/modules/syndication/" xmlns:admin="http://webns.net/mvcb/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:content="http://purl.org/rss/1.0/modules/content/">
     <channel>
        <title>ACCU  :: The Wall</title>
        <link>https://members.accu.org/index.php/journals/992</link>
        <description>Professionalism in Programming</description>
        <dc:language>en-us</dc:language> 
        <dc:creator>Administrator</dc:creator> 
        <admin:generatorAgent rdf:resource="http://www.xaraya.org" /> 
        <admin:errorReportsTo rdf:resource="mailto:webeditor@accu.org" />
       <sy:updatePeriod>hourly</sy:updatePeriod>
       <sy:updateFrequency>1</sy:updateFrequency>
       <docs>http://backend.userland.com/rss</docs>


        <h2>Journal Articles</h2>


<div class="xar-mod-head"><span class="xar-mod-title">CVu Journal Vol 12, #2 - Mar 2000 + Letters to the Editor</span></div>

<table border="0" cellpadding="1" cellspacing="0">
    <tbody>
    <tr>
        <td valign="top">
            Browse in :
       </td>
       <td valign="top">

                                            <a href="https://members.accu.org/index.php/journals/">All</a>

                     &gt;                         <a href="https://members.accu.org/index.php/journals/c76/">Journals</a>

                     &gt;                         <a href="https://members.accu.org/index.php/journals/c77/">CVu</a>

                     &gt;                         <a href="https://members.accu.org/index.php/journals/c127/">122</a>
                    (18)
<br />

                                            <a href="https://members.accu.org/index.php/journals/">All</a>

                     &gt;                         <a href="https://members.accu.org/index.php/journals/c184/">Journal Columns</a>

                     &gt;                         <a href="https://members.accu.org/index.php/journals/c186/">LettersEditor</a>
                    (132)
<br />

                                            <a href="https://members.accu.org/index.php/journals/c127-186/">Any of these categories</a>

                    -                        <a href="https://members.accu.org/index.php/journals/c127+186/">All of these categories</a>
<br />
</td>
   </tr>
   </tbody>
</table>




<div class="xar-error">
   <p>
 <strong>Note:</strong> when you create a new publication type,
the articles module will automatically use the templates
<em>user-display-[publicationtype].xt</em>
and <em>user-summary-[publicationtype].xt</em>.
If those templates do not exist when you try to preview or display a new article,
you'll get this warning :-)  Please place your own templates in themes/<em>yourtheme</em>/modules/articles . The templates will get the extension .xt there. </p>
</div>
<div class="xar-norm xar-standard-box-padding">
   <h1><strong>Title:</strong>&nbsp;The Wall</h1>
<p><strong>Author:</strong>&nbsp;</p>
<p>
<strong>Date:</strong> 08 March 2000 13:15:36 +00:00 or Wed, 08 March 2000 13:15:36 +00:00</p>
<p><strong>Summary:</strong>&nbsp;</p>
<p><strong>Body:</strong>&nbsp;<div class="sect1" lang="en">
<div class="titlepage">
<h2><a name="d0e22" id="d0e22"></a>eliminate()
without break</h2>
</div>
<p>Dear Francis,</p>
<p>I have attached an attempt at the <tt class=
"function">eliminate()</tt> function which does not use break or
call another function. The code is based on the code submitted by
Anthony Hay (C Vu 12.1 p11) but effectively replacing the
<tt class="function">strchr</tt> call with an inline equivalent.
The bitmap creation and exploitation code is standard, but not
especially intuitive. If you work through it, you can convince
yourself that it works.</p>
<p>Catriona O'Connell <tt class="email">&lt;<a href=
"mailto:catriona38@hotmail.com">catriona38@hotmail.com</a>&gt;</tt></p>
<pre class="programlisting">
#include &lt;stdio.h&gt;
  char *eliminate(char const these[]
            , char from[]);
int main(){
  char myname[] = &quot;Catriona Siobhan O'Connell&quot;;
  const char vowels[] = &quot;aeiouAEIOU&quot;;
  puts(myname);
  eliminate(vowels,myname);
  puts(myname);
  return 0;
}
char *eliminate(char const these[]
            , char from[]){
// Purpose:  Remove specified characters from a
// string. At entry char const these[] lists 
// the characters to be removed and char 
// from[] is the string to be processed. At 
// exit from[] contains the characters not 
// removed.
  char *src = from;
  char *dst = from;
  unsigned char map[32];
  int count;
// Create a bit map with a bit set on for each   
// unique character in the these[] string.
  for (count=0;count&lt;32; count++) map[count]= 0;
  while (*these){
    map[*these &gt;&gt; 3] |= (1 &lt;&lt; (*these &amp; 7));
    these++;
  }
// For each character in from[], check if the 
// corresponding bit is set in the bitmap. If
// it is advance to the next character, 
// otherwise, copy the character to a 
// (potentially) new position for output.
  while (*src){
    if(map[*src &gt;&gt; 3]&amp;(1&lt;&lt;(*src &amp; 7))) src++;
    else *dst++ = *src++; 
  }
// Add a terminating NUL.
  *dst = '\0';
  return from;
}
</pre></div>
</p>
<p><strong>Notes:</strong>&nbsp;</p>
<p><em>More fields may be available via dynamicdata ..</em></p>
</div>
</channel>
</rss>
