Initializing help system before first use

XPRMdbg_getlndx

XPRMdbg_getlndx


Purpose
Retrieve all line indices.
Synopsis
void XPRMdbg_getlndx(XPRMmodel model, int *nbl, int *lines, int *nbf, const char **fnames);
Arguments
model 
Reference to a model
nbl 
Pointer to an area where the number of indices is returned (can be NULL)
lines 
Pointer to an area where the encoded line numbers are returned (can be NULL)
nbf 
Pointer to an area where the number of file names is returned (can be NULL)
fnames 
Pointer to an area where the file names are returned (can be NULL)
Further information
1. If no debugging information is available ( e.g. program has not been compiled with option "G") nbl takes value -1 and nbf is set to 0.
2. lines and fnames can be NULL: in this case the function still returns the sizes of these arrays.
3. Each entry of the lines array represents at the same time a line number (coded on 24 bits) and a file number (coded on 8bits) that is a reference in the fnames array. Macros XPRM_DBGL_LINE and XPRM_DBGL_FILE can be used to extract these references from the encoded index.
Related topics