NAME
BUFF_GET_COMMAND_TEXT - (MACRO) Sets up call to get_command_text
SYNOPSIS
#include "l/l_io.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
long BUFF_GET_COMMAND_TEXT
(
const char *progam_name,
char command[ ]
);
DESCRIPTION
The max_len parameter is set to sizeof(command). 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 command is NOT a character array. If command is declared by
"char *command", then the size of command is the number of bytes in a
character pointer (usually 4), which is NOT what is normally intended. You
have been WARNED!
RELATED
get_command_text
DISCLAIMER
This software is not adequatedly tested. It is recomended that
results are checked independantly where appropriate.
AUTHOR
Kobus Barnard
DOCUMENTER
Kobus Barnard