ISLEC  Version 4.2
Macros | Functions
clear_comments.c File Reference

Clear all commented lines (started with the character '#') and black lines included in a user specified ISLEC database file. More...

Go to the source code of this file.

Macros

#define STRING_LENGTH   1024
 Defined length of a readed line used by the C library function fgets() More...
 

Functions

bool clear_comments (char *input, char *temp)
 Clear all commented sentences in a islec database file, and then write databank to a temporary file named using the defination of TEMP_FILE. More...
 

Detailed Description

Clear all commented lines (started with the character '#') and black lines included in a user specified ISLEC database file.

Author
Dongdong Li ddong.nosp@m._li@.nosp@m.hotma.nosp@m.il.c.nosp@m.om
Date
2018-05-26
Version
4.2.0.1

Definition in file clear_comments.c.

Macro Definition Documentation

◆ STRING_LENGTH

#define STRING_LENGTH   1024

Defined length of a readed line used by the C library function fgets()

Definition at line 34 of file clear_comments.c.

Function Documentation

◆ clear_comments()

bool clear_comments ( char *  input,
char *  temp 
)

Clear all commented sentences in a islec database file, and then write databank to a temporary file named using the defination of TEMP_FILE.

Author
Dongdong Li ddong.nosp@m._li@.nosp@m.hotma.nosp@m.il.c.nosp@m.om
Parameters
[in]inputThe file name of a islec database file
[in]tempThe file name of a temporary file
Returns
There is no returned value
Note
This function is applied to clear all the commented sentences in a islec database file and save the cleared database into a temporary database file
Since
4.0.0.0

Definition at line 53 of file clear_comments.c.