
/* Copyright © 1991, 1992 by Walter Rothe. You may freely use and modify this
 * program, but not for commercial profit. A modest fee for distribution is
 * allowed. Derivative works must be released with source along with the
 * executable or provisions made to provide the user source, if requested.
 * Uploading source to a major bulletin board system within 6 months of the
 * time of the request satisfies this requirement. This copyright notice
 * must not be deleted from the source.
 *
 * PndQues2Ast.c
 *
 * Replace "#?" within strings with a "*"
 *
 */

PndQues2Ast( StrngP )

char *StrngP;

{

        char *SrcP=StrngP, *DstP=StrngP;

        while( *SrcP != '\0' ) {

           if( *SrcP == '#' ) {

              if( *(SrcP+1) == '?' ) {

                 *DstP++ = '*';
                 SrcP++;
                 SrcP++;
                 continue;

              }

           }

           *DstP++ = *SrcP++;

        }

        *DstP = '\0';

}
