<?xml version='1.0' encoding='UTF-8' standalone='no'?>
<section xmlns="http://docbook.org/ns/docbook" version="5.0" xmlns:xlink="http://www.w3.org/1999/xlink" xml:id="_bfix_8cpp">
<title>/Users/bernard/b20/bsoft/src/bfix.cpp File Reference</title>
<indexterm><primary>/Users/bernard/b20/bsoft/src/bfix.cpp</primary></indexterm>
<para>

<para>Program to fix end-of-line characters in ascii files. </para>
 
</para>
<programlisting>#include &quot;utilities.h&quot;
#include &quot;options.h&quot;
#include &quot;timer.h&quot;
#include &lt;fstream&gt;
</programlisting><simplesect>
    <title>Functions    </title>
        <itemizedlist>
            <listitem><para>long <link linkend="_bfix_8cpp_1ad305b97317482f0d389b938bfd5d45dc">replace_a_character</link> (unsigned char *buf, long size, int chin, int chout)</para>
</listitem>
            <listitem><para>long <link linkend="_bfix_8cpp_1a83199869a3a85e7f6cfa7709cc5a3a68">delete_a_character</link> (unsigned char *buf, long size, int c)</para>
</listitem>
            <listitem><para>int <link linkend="_bfix_8cpp_1a3c04138a5bfe5d72780bb7e82a18e627">main</link> (int argc, char **argv)</para>
</listitem>
        </itemizedlist>
</simplesect>
<simplesect>
    <title>Variables    </title>
        <itemizedlist>
            <listitem><para>int <link linkend="_bfix_8cpp_1a0b2caeb4b6f130be43e5a2f0267dd453">verbose</link></para>
</listitem>
            <listitem><para>const char * <link linkend="_bfix_8cpp_1a4de0ad4c7190962494815c0fa7f948df">use</link> []</para>
</listitem>
        </itemizedlist>
</simplesect>
<section>
<title>Detailed Description</title>

<para>Program to fix end-of-line characters in ascii files. </para>

<para><formalpara><title>Author: </title>

<para>Bernard Heymann </para>
</formalpara>
<formalpara><title>Date: </title>

<para>Created: 19990206 </para>

<para>Modified: 20120306 </para>
</formalpara>
</para>
</section>
<section>
<title>Function Documentation</title>
<anchor xml:id="_bfix_8cpp_1a83199869a3a85e7f6cfa7709cc5a3a68"/>    <section>
    <title>delete_a_character()</title>
<indexterm><primary>delete_a_character</primary><secondary>bfix.cpp</secondary></indexterm>
<indexterm><primary>bfix.cpp</primary><secondary>delete_a_character</secondary></indexterm>
<para><computeroutput>long delete_a_character (unsigned char * buf, long size, int c)</computeroutput></para><para>
Definition at line 170 of file bfix.cpp.</para>
    </section><anchor xml:id="_bfix_8cpp_1a3c04138a5bfe5d72780bb7e82a18e627"/>    <section>
    <title>main()</title>
<indexterm><primary>main</primary><secondary>bfix.cpp</secondary></indexterm>
<indexterm><primary>bfix.cpp</primary><secondary>main</secondary></indexterm>
<para><computeroutput>int main (int argc, char ** argv)</computeroutput></para><para>
Definition at line 43 of file bfix.cpp.</para>
    </section><anchor xml:id="_bfix_8cpp_1ad305b97317482f0d389b938bfd5d45dc"/>    <section>
    <title>replace_a_character()</title>
<indexterm><primary>replace_a_character</primary><secondary>bfix.cpp</secondary></indexterm>
<indexterm><primary>bfix.cpp</primary><secondary>replace_a_character</secondary></indexterm>
<para><computeroutput>long replace_a_character (unsigned char * buf, long size, int chin, int chout)</computeroutput></para><para>
Definition at line 153 of file bfix.cpp.</para>
</section>
</section>
<section>
<title>Variable Documentation</title>
<anchor xml:id="_bfix_8cpp_1a4de0ad4c7190962494815c0fa7f948df"/>    <section>
    <title>use</title>
<indexterm><primary>use</primary><secondary>bfix.cpp</secondary></indexterm>
<indexterm><primary>bfix.cpp</primary><secondary>use</secondary></indexterm>
<para><computeroutput>const char* use[]</computeroutput></para><emphasis role="strong">Initial value:</emphasis><programlisting>=&#32;{
<emphasis role="stringliteral">&quot;&#32;&quot;</emphasis>,
<emphasis role="stringliteral">&quot;Usage:&#32;bfix&#32;[options]&#32;file.in&#32;file.out&quot;</emphasis>,
<emphasis role="stringliteral">&quot;--------------------------------------&quot;</emphasis>,
<emphasis role="stringliteral">&quot;Replaces&#32;single&#32;characters&#32;in&#32;a&#32;file.&quot;</emphasis>,
<emphasis role="stringliteral">&quot;If&#32;only&#32;one&#32;file&#32;name&#32;is&#32;given,&#32;the&#32;output&#32;is&#32;sent&#32;to&#32;stdout.&quot;</emphasis>,
<emphasis role="stringliteral">&quot;If&#32;a&#32;\&quot;.\&quot;&#32;character&#32;is&#32;used&#32;for&#32;output,&#32;the&#32;input&#32;file&#32;name&#32;is&#32;used&quot;</emphasis>,
<emphasis role="stringliteral">&quot;(without&#32;the&#32;path).&quot;</emphasis>,
<emphasis role="stringliteral">&quot;Note:&#32;replace&#32;and&#32;delete&#32;are&#32;mutually&#32;exclusive&#32;-&#32;the&#32;last&#32;option&#32;wins&quot;</emphasis>,
<emphasis role="stringliteral">&quot;&#32;&quot;</emphasis>,
<emphasis role="stringliteral">&quot;Actions:&quot;</emphasis>,
<emphasis role="stringliteral">&quot;-n&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;Replace&#32;&lt;cr&gt;&#32;with&#32;&lt;nl&gt;&#32;(To&#32;UNIX&#32;style)&quot;</emphasis>,
<emphasis role="stringliteral">&quot;-c&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;Replace&#32;&lt;nl&gt;&#32;with&#32;&lt;cr&gt;&#32;(To&#32;MAC&#32;style)&quot;</emphasis>,
<emphasis role="stringliteral">&quot;-replace&#32;9,32&#32;&#32;&#32;&#32;&#32;&#32;Replace&#32;all&#32;character&#32;values&#32;9&#32;with&#32;character&#32;values&#32;32&quot;</emphasis>,
<emphasis role="stringliteral">&quot;-delete&#32;13&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;Delete&#32;all&#32;character&#32;values&#32;13&quot;</emphasis>,
<emphasis role="stringliteral">&quot;&#32;&quot;</emphasis>,
<emphasis role="stringliteral">&quot;Parameters:&quot;</emphasis>,
<emphasis role="stringliteral">&quot;-verbose&#32;7&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;Verbosity&#32;of&#32;output&quot;</emphasis>,
<emphasis role="stringliteral">&quot;&#32;&quot;</emphasis>,
NULL
}
</programlisting><para>
Definition at line 21 of file bfix.cpp.</para>
    </section><anchor xml:id="_bfix_8cpp_1a0b2caeb4b6f130be43e5a2f0267dd453"/>    <section>
    <title>verbose</title>
<indexterm><primary>verbose</primary><secondary>bfix.cpp</secondary></indexterm>
<indexterm><primary>bfix.cpp</primary><secondary>verbose</secondary></indexterm>
<para><computeroutput>int verbose</computeroutput></para></section>
</section>
</section>
