Back to index

radiance  4R0+20100331
Functions | Variables
strcmp.c File Reference
#include "copyright.h"

Go to the source code of this file.

Functions

int strcmp (char *s1, char *s2)

Variables

static const char RCSid [] = "$Id: strcmp.c,v 2.3 2003/02/25 02:47:22 greg Exp $"

Function Documentation

int strcmp ( char *  s1,
char *  s2 
)

Definition at line 12 of file strcmp.c.

{
       if (s1 == s2)
              return(0);

       while (*s1 == *s2++)
              if (!*s1++)
                     return(0);

       return(*s1 - *--s2);
}

Variable Documentation

const char RCSid[] = "$Id: strcmp.c,v 2.3 2003/02/25 02:47:22 greg Exp $" [static]

Definition at line 2 of file strcmp.c.