Re: String Comparision



Fred Kleinschmidt wrote:


"Default User" <defaultuserbr@xxxxxxxxx> wrote in message
news:59kkpuF2k1o49U1@xxxxxxxxxxxxxxxxxxxxx
user34 wrote:


I did not retype the code !
Here it is once again (without any of the above suggested
improvements)and it still shows me the same error!

#include<stdio.h>

int comp(char *s,char *t)
{
for(;*s==*t;s++,t++);
^
That semicolon doesn't belong.


What semicolon? That is a comma.


You should use a non-proportional font for usenet. I could guess
(correctly) that you use Outlook Express.




Brian



.



Relevant Pages

  • Re: String Comparision
    ... Fred Kleinschmidt said: ... int comp ... That semicolon doesn't belong. ... rjh at the above domain, ...
    (comp.lang.c)
  • Re: The "spinoza" programming language
    ... int x,y,z; ... "Statements are terminated with a semicolon" ... When a compilation process is more ... Seed7 - The extensible programming language: ...
    (comp.programming)
  • Re: [PATCH 2.6.6-rc3] Lindent on arch/i386/kernel/cpuid.c
    ... I added the semicolon for consistency and that caused Lindent to do ... struct cpuid_command cmd; ... static loff_t cpuid_seek(struct file *file, loff_t offset, int orig) ... loff_t ret; ...
    (Linux-Kernel)
  • Re: String parsing question
    ... Dan Pop wrote: ... >> format, and items in the fourth format to the second. ... >> or may not have a trailing semicolon. ... static int flushrecord ...
    (comp.lang.c)
  • Re: Structure of functions
    ... int main(void) ... My question is if the semicolon is permitted at the end of a function (see ... A lone semicolon is not allowed by the grammar at that point. ...
    (comp.lang.c)