CalculiX  2.13
A Free Software Three-Dimensional Structural Finite Element Program
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

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

Function Documentation

◆ compare()

int compare ( char *  str1,
char *  str2,
int  length 
)
14 {
15  int 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 }
Hosted by OpenAircraft.com, (Michigan UAV, LLC)