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

Go to the source code of this file.

Functions

ITG strcpy1 (char *s1, const char *s2, ITG length)
 

Function Documentation

ITG strcpy1 ( char *  s1,
const char *  s2,
ITG  length 
)

Definition at line 24 of file strcpy1.c.

25 {
26  ITG b,i,blank=0;
27 
28  for(i=0;i<length;i++) {
29  if(blank==0){
30  b=*s2;
31  if(b=='\0')blank=1;
32  }
33  if(blank==0) {*s1=*s2;s2++;}
34  else *s1=' ';
35  s1++;
36  }
37  return 0;
38 }
#define ITG
Definition: CalculiX.h:51
Hosted by OpenAircraft.com, (Michigan UAV, LLC)