gCAD3D 2.40
csv_ut.c File Reference

write, read csv-files (comm-separated-values, "flat-files") More...

#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <stdarg.h>
#include "../exp/csv_ut.h"

Functions

int TX_Error (char *txt,...)
 ========================================================== More...
 
int CSV_write__ (FILE *fpo, CSV_struct *fTyp)
 
int CSV_read__ (CSV_struct *fTyp, char *sb, int sSiz, FILE *fpi)
 

Detailed Description

write, read csv-files (comm-separated-values, "flat-files")

=====================================================
List_functions_start:
CSV_read__ read/decode next line in csv-file
CSV_write__ write line into csv-file
List_functions_end:
=====================================================

Function Documentation

int TX_Error ( char *  txt,
  ... 
)

==========================================================

========================================================== formatted errortext into messagewindow. Example: TX_Print (".. distance must not exceed %lf", d1);

* display message and raise error
* 0-10 parameters; max. 250 characters
* Example:
* TX_Print (".. distance must not exceed %lf", d1);
*
* Set/reset Errors: see AP_errStat_set ()
*
int CSV_write__ ( FILE *  fpo,
CSV_struct fTyp 
)
int CSV_read__ ( CSV_struct fTyp,
char *  sb,
int  sSiz,
FILE *  fpi 
)