error_tensegrity.c
Go to the documentation of this file.
1 #include "error_tensegrity.h"
2 
3 #include "error.h"
4 
5 #include <stdlib.h>
6 #include <stdio.h>
7 
45 unsigned int RTline=0;
46 
47 int ReadTensegrityerror(const char *s)
48 {
49  char ErrorText[500];
50 
51  sprintf(ErrorText,"Syntax Error in .tens file at line %u (%.400s)",RTline,s);
52  Error(ErrorText);
53 
54  return(EXIT_FAILURE);
55 }
Error function specific of the tensegrity parser.
unsigned int RTline
Number of the line currently parsed when reading a .tensegrity file.
void Error(const char *s)
General error function.
Definition: error.c:80
Error and warning functions.
int ReadTensegrityerror(const char *s)
Syntax errors in .tensegrity files.