CalculiX  2.8
A Free Software Three-Dimensional Structural Finite Element Program
 All Classes Files Functions Variables Macros
compare.c File Reference
#include <unistd.h>
#include <stdio.h>
#include <math.h>
#include <stdlib.h>
#include <pthread.h>
#include "CalculiX.h"
Include dependency graph for compare.c:

Go to the source code of this file.

Functions

ITG compare (char *str1, char *str2, ITG length)
 

Function Documentation

ITG compare ( char *  str1,
char *  str2,
ITG  length 
)

Definition at line 13 of file compare.c.

14 {
15  ITG i;
16 
17  i = 0;
18  while ((str1[i]==str2[i]) && (i<length))
19  i++;
20 
21  return i; /* Return how far we got before a difference occurred, or the variable */
22  /* length, whichever is the smaller */
23 }
#define ITG
Definition: CalculiX.h:51
Hosted by OpenAircraft.com, (Michigan UAV, LLC)