X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f From: Cesar Rabak Newsgroups: comp.os.msdos.djgpp Subject: Re: How to count the occurance of a character in a string? Date: Fri, 11 May 2007 19:07:20 -0300 Organization: Aioe.org NNTP Server Lines: 13 Message-ID: References: <20070511181210 DOT GT3209 AT freenet DOT de> NNTP-Posting-Host: LMLnELbTmZpUdPJQYztLAA.user.aioe.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Complaints-To: abuse AT aioe DOT org In-Reply-To: User-Agent: Thunderbird 1.5.0.8 (X11/20061109) To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com Michelle Konzack escreveu: > Hello, > > I have to check several 1000 ascii strings > for the occurance of a "." (DOT). > > What is the best (and fastest) method to > count the character? > Michelle, Can you elaborate? It is inside a C program, is it to be done at a shell prompt? Any other ;-) ?