printscan

printscan

Functions

Description

Functions

do_printf ()

int
do_printf (const char *format,
           const char *args,
           DATASET *dset,
           PRN *prn,
           int *nchars);

Implements a somewhat limited version of C's printf() for use in gretl scripts.

Parameters

format

format string.

 

args

list of arguments as string.

 

dset

dataset struct.

 

prn

printing struct.

 

nchars

location to receive number of characters printed.

 

Returns

0 on success, non-zero on error.


do_sprintf_function ()

char *
do_sprintf_function (const char *format,
                     const char *args,
                     DATASET *dset,
                     int *err);

Implements the hansl-function form of sprintf.

Parameters

format

format string.

 

args

list of arguments as string.

 

dset

dataset struct.

 

err

location to receive error code.

 

Returns

constructed string, or NULL on error.


do_sscanf ()

int
do_sscanf (const char *src,
           const char *format,
           const char *args,
           DATASET *dset,
           int *n_items);

Implements a somewhat simplified version of C's sscanf() for use in hansl scripts.

Parameters

src

the source string.

 

format

the format string.

 

args

the arguments, as composite string.

 

dset

dataset struct.

 

n_items

location to receive the number of scanned items.

 

Returns

0 on success, non-zero on error.


do_printscan_command ()

int
do_printscan_command (int ci,
                      const char *parm1,
                      const char *parm2,
                      const char *vargs,
                      DATASET *dset,
                      PRN *prn);

generate_obs_markers ()

int
generate_obs_markers (const char *s,
                      DATASET *dset);

Types and Values