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.


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;
17  i = 0;
18  while ((str1[i]==str2[i]) && (i<length))
19  i++;
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, (Michigan UAV, LLC)