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

Go to the source code of this file.

Functions

void stos (char *string, ITG a, ITG b, char *puffer)
 
void stos_inv (char *string, ITG a, ITG b, char *puffer)
 

Function Documentation

void stos ( char *  string,
ITG  a,
ITG  b,
char *  puffer 
)

Definition at line 16 of file stos.c.

17 {
18  register ITG n, i;
19 
20  n=-1;
21  for (i=a-1; i<b; i++)
22  {
23  n++;
24  if ((i>=MAX_LINE_LENGTH)||(n>=MAX_LINE_LENGTH)) break;
25  puffer[n] = string[i];
26  }
27  puffer[n+1] = '\0';
28 }
#define MAX_LINE_LENGTH
Definition: readfrd.h:10
#define ITG
Definition: CalculiX.h:51
void stos_inv ( char *  string,
ITG  a,
ITG  b,
char *  puffer 
)

Definition at line 31 of file stos.c.

32 {
33  register ITG n, i;
34 
35  n=-1;
36  for (i=a-1; i<b; i++)
37  {
38  n++;
39  if ((i>132)||(n>132)) break;
40  puffer[i] = string[n];
41  }
42 }
#define ITG
Definition: CalculiX.h:51
Hosted by OpenAircraft.com, (Michigan UAV, LLC)