InChI
 
Loading...
Searching...
No Matches
ichi_io.c File Reference
#include <string.h>
#include <stdlib.h>
#include <ctype.h>
#include <stdarg.h>
#include <time.h>
#include "mode.h"
#include "ichi_io.h"
#include "ichicomp.h"
#include "ichidrp.h"
#include "strutil.h"
#include "util.h"
#include "bcf_s.h"
+ Include dependency graph for ichi_io.c:

Macros

#define INCHI_ADD_STR_LEN   32768
 
#define CONSOLE_LINE_LEN   80
 
#define FORCE_ANSI   0x10000
 
#define FORCE_UNICODE   0x20000
 

Functions

int inchi_ios_str_getc (INCHI_IOSTREAM *ios)
 
char * inchi_ios_str_gets (char *szLine, int len, INCHI_IOSTREAM *ios)
 
char * inchi_ios_str_getsTab (char *szLine, int len, INCHI_IOSTREAM *ios)
 
int GetMaxPrintfLength (const char *lpszFormat, va_list argList)
 
char * inchi_fgetsTab (char *szLine, int len, FILE *f)
 
int inchi_vfprintf (FILE *f, const char *lpszFormat, va_list argList)
 
void inchi_ios_init (INCHI_IOSTREAM *ios, int io_type, FILE *f)
 
int inchi_ios_create_copy (INCHI_IOSTREAM *ios, INCHI_IOSTREAM *ios0)
 
void inchi_ios_flush (INCHI_IOSTREAM *ios)
 
void inchi_ios_flush2 (INCHI_IOSTREAM *ios, FILE *f2)
 
void inchi_ios_close (INCHI_IOSTREAM *ios)
 
void inchi_ios_reset (INCHI_IOSTREAM *ios)
 
void inchi_ios_free_str (INCHI_IOSTREAM *ios)
 
int inchi_ios_gets (char *szLine, int len, INCHI_IOSTREAM *f, int *bTooLongLine)
 
int inchi_ios_getsTab (char *szLine, int len, INCHI_IOSTREAM *f, int *bTooLongLine)
 
int inchi_ios_getsTab1 (char *szLine, int len, INCHI_IOSTREAM *f, int *bTooLongLine)
 
int inchi_ios_print (INCHI_IOSTREAM *ios, const char *lpszFormat,...)
 
int push_to_winchi_text_window (INCHI_IOSTREAM *ios)
 
int inchi_ios_print_nodisplay (INCHI_IOSTREAM *ios, const char *lpszFormat,...)
 
int inchi_ios_flush_not_displayed (INCHI_IOSTREAM *ios)
 
int inchi_ios_eprint (INCHI_IOSTREAM *ios, const char *lpszFormat,...)
 
int inchi_fprintf (FILE *f, const char *lpszFormat,...)
 
int inchi_print_nodisplay (FILE *f, const char *lpszFormat,...)
 
int inchi_fgetsLfTab (char *szLine, int len, FILE *f)
 
char * inchi_fgetsLf (char *line, int line_len, INCHI_IOSTREAM *inp_stream)
 
char * inchi_sgets (char *s, int n, INCHI_IOSTREAM *ios)
 
int inchi_strbuf_init (INCHI_IOS_STRING *buf, int start_size, int incr_size)
 
void inchi_strbuf_reset (INCHI_IOS_STRING *buf)
 
void inchi_strbuf_close (INCHI_IOS_STRING *buf)
 
int inchi_strbuf_create_copy (INCHI_IOS_STRING *buf2, INCHI_IOS_STRING *buf)
 
int inchi_strbuf_update (INCHI_IOS_STRING *buf, int new_addition_size)
 
int inchi_strbuf_printf (INCHI_IOS_STRING *buf, const char *lpszFormat,...)
 
int inchi_strbuf_printf_from (INCHI_IOS_STRING *buf, int npos, const char *lpszFormat,...)
 
int inchi_strbuf_getline (INCHI_IOS_STRING *buf, FILE *f, int crlf2lf, int preserve_lf)
 
int inchi_strbuf_addline (INCHI_IOS_STRING *buf, INCHI_IOSTREAM *inp_stream, int crlf2lf, int preserve_lf)
 
int _inchi_trace (char *format,...)
 
int Output_RecordInfo (INCHI_IOSTREAM *out_file, int num_input_struct, int bNoStructLabels, const char *szSdfLabel, const char *szSdfValue, unsigned long lSdfId, char *pLF, char *pTAB)
 

Macro Definition Documentation

◆ CONSOLE_LINE_LEN

#define CONSOLE_LINE_LEN   80

◆ FORCE_ANSI

#define FORCE_ANSI   0x10000

◆ FORCE_UNICODE

#define FORCE_UNICODE   0x20000

◆ INCHI_ADD_STR_LEN

#define INCHI_ADD_STR_LEN   32768

Function Documentation

◆ _inchi_trace()

int _inchi_trace ( char *  format,
  ... 
)

◆ GetMaxPrintfLength()

int GetMaxPrintfLength ( const char *  lpszFormat,
va_list  argList 
)
+ Here is the caller graph for this function:

◆ inchi_fgetsLf()

char * inchi_fgetsLf ( char *  line,
int  line_len,
INCHI_IOSTREAM inp_stream 
)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ inchi_fgetsLfTab()

int inchi_fgetsLfTab ( char *  szLine,
int  len,
FILE *  f 
)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ inchi_fgetsTab()

char * inchi_fgetsTab ( char *  szLine,
int  len,
FILE *  f 
)
+ Here is the caller graph for this function:

◆ inchi_fprintf()

int inchi_fprintf ( FILE *  f,
const char *  lpszFormat,
  ... 
)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ inchi_ios_close()

void inchi_ios_close ( INCHI_IOSTREAM ios)
+ Here is the caller graph for this function:

◆ inchi_ios_create_copy()

int inchi_ios_create_copy ( INCHI_IOSTREAM ios,
INCHI_IOSTREAM ios0 
)

◆ inchi_ios_eprint()

int inchi_ios_eprint ( INCHI_IOSTREAM ios,
const char *  lpszFormat,
  ... 
)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ inchi_ios_flush()

void inchi_ios_flush ( INCHI_IOSTREAM ios)
+ Here is the caller graph for this function:

◆ inchi_ios_flush2()

void inchi_ios_flush2 ( INCHI_IOSTREAM ios,
FILE *  f2 
)
+ Here is the caller graph for this function:

◆ inchi_ios_flush_not_displayed()

int inchi_ios_flush_not_displayed ( INCHI_IOSTREAM ios)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ inchi_ios_free_str()

void inchi_ios_free_str ( INCHI_IOSTREAM ios)
+ Here is the caller graph for this function:

◆ inchi_ios_gets()

int inchi_ios_gets ( char *  szLine,
int  len,
INCHI_IOSTREAM f,
int *  bTooLongLine 
)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ inchi_ios_getsTab()

int inchi_ios_getsTab ( char *  szLine,
int  len,
INCHI_IOSTREAM f,
int *  bTooLongLine 
)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ inchi_ios_getsTab1()

int inchi_ios_getsTab1 ( char *  szLine,
int  len,
INCHI_IOSTREAM f,
int *  bTooLongLine 
)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ inchi_ios_init()

void inchi_ios_init ( INCHI_IOSTREAM ios,
int  io_type,
FILE *  f 
)
+ Here is the caller graph for this function:

◆ inchi_ios_print()

int inchi_ios_print ( INCHI_IOSTREAM ios,
const char *  lpszFormat,
  ... 
)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ inchi_ios_print_nodisplay()

int inchi_ios_print_nodisplay ( INCHI_IOSTREAM ios,
const char *  lpszFormat,
  ... 
)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ inchi_ios_reset()

void inchi_ios_reset ( INCHI_IOSTREAM ios)
+ Here is the caller graph for this function:

◆ inchi_ios_str_getc()

int inchi_ios_str_getc ( INCHI_IOSTREAM ios)
+ Here is the caller graph for this function:

◆ inchi_ios_str_gets()

char * inchi_ios_str_gets ( char *  szLine,
int  len,
INCHI_IOSTREAM ios 
)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ inchi_ios_str_getsTab()

char * inchi_ios_str_getsTab ( char *  szLine,
int  len,
INCHI_IOSTREAM ios 
)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ inchi_print_nodisplay()

int inchi_print_nodisplay ( FILE *  f,
const char *  lpszFormat,
  ... 
)
+ Here is the caller graph for this function:

◆ inchi_sgets()

char * inchi_sgets ( char *  s,
int  n,
INCHI_IOSTREAM ios 
)
+ Here is the caller graph for this function:

◆ inchi_strbuf_addline()

int inchi_strbuf_addline ( INCHI_IOS_STRING buf,
INCHI_IOSTREAM inp_stream,
int  crlf2lf,
int  preserve_lf 
)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ inchi_strbuf_close()

void inchi_strbuf_close ( INCHI_IOS_STRING buf)
+ Here is the caller graph for this function:

◆ inchi_strbuf_create_copy()

int inchi_strbuf_create_copy ( INCHI_IOS_STRING buf2,
INCHI_IOS_STRING buf 
)
+ Here is the caller graph for this function:

◆ inchi_strbuf_getline()

int inchi_strbuf_getline ( INCHI_IOS_STRING buf,
FILE *  f,
int  crlf2lf,
int  preserve_lf 
)
+ Here is the call graph for this function:

◆ inchi_strbuf_init()

int inchi_strbuf_init ( INCHI_IOS_STRING buf,
int  start_size,
int  incr_size 
)
+ Here is the caller graph for this function:

◆ inchi_strbuf_printf()

int inchi_strbuf_printf ( INCHI_IOS_STRING buf,
const char *  lpszFormat,
  ... 
)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ inchi_strbuf_printf_from()

int inchi_strbuf_printf_from ( INCHI_IOS_STRING buf,
int  npos,
const char *  lpszFormat,
  ... 
)
+ Here is the call graph for this function:

◆ inchi_strbuf_reset()

void inchi_strbuf_reset ( INCHI_IOS_STRING buf)
+ Here is the caller graph for this function:

◆ inchi_strbuf_update()

int inchi_strbuf_update ( INCHI_IOS_STRING buf,
int  new_addition_size 
)
+ Here is the caller graph for this function:

◆ inchi_vfprintf()

int inchi_vfprintf ( FILE *  f,
const char *  lpszFormat,
va_list  argList 
)
+ Here is the caller graph for this function:

◆ Output_RecordInfo()

int Output_RecordInfo ( INCHI_IOSTREAM out_file,
int  num_input_struct,
int  bNoStructLabels,
const char *  szSdfLabel,
const char *  szSdfValue,
unsigned long  lSdfId,
char *  pLF,
char *  pTAB 
)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ push_to_winchi_text_window()

int push_to_winchi_text_window ( INCHI_IOSTREAM ios)
+ Here is the caller graph for this function: