NAME
BUFF_CONST_SGET_LINE - Sets up call to const_sget_line (MACRO)
SYNOPSIS
#include "l/l_string.h"
Example compile flags (system dependent):
-DLINUX_X86_64 -DLINUX_X86_64_OPTERON -DGNU_COMPILER
-I/home/kobus/include
-L/home/kobus/misc/load/linux_x86_64_opteron -L/usr/lib/x86_64-linux-gnu
-lKJB -lfftw3 -lgsl -lgslcblas -ljpeg -lSVM -lstdc++ -lpthread -lSLATEC -lg2c -lacml -lacml_mv -lblas -lg2c -lncursesw
int BUFF_CONST_SGET_LINE
(
const char **input_line,
char buff[ ]
);
DESCRIPTION
The max_len parameter is set to sizeof(line). Using sizeof to set the
buffer size is recomended where applicable, as the code will not be broken
if the buffer size changes. HOWEVER, neither this method, nor the macro, is
applicable if line is NOT a character array. If line is declared by "char
*line", then the size of line is the number of bytes in a character pointer
(usually 4), which is NOT what is normally intended. You have been WARNED!
Note that const_sget_line() and sget_line() do the same thing. Neither change
the actual string being parsed, only the position pointer. There are two
versions to better communicate with various compilers.
RELATED
const_sget_line, BUFF_SGET_LINE, sget_line, BUFF_DGET_LINE, dget_line,
BUFF_FGET_LINE, fget_line
DISCLAIMER
This software is not adequatedly tested. It is recomended that
results are checked independantly where appropriate.
AUTHOR
Kobus Barnard
DOCUMENTER
Kobus Barnard
SEE ALSO
BUFF_SGET_LINE