1LIBMAWK_SET_CELL(3)             libmawk manual             LIBMAWK_SET_CELL(3)
2
3
4

NAME

6       libmawk_set_cell - set the value of a mawk cell.
7

SYNOPSIS

9       #include <libmawk.h>
10
11       CELL *libmawk_set_cell(mawk_state_t *m, CELL *cell, const charargtype,...);
12       CELL *libmawk_set_cellp(mawk_state_t *m, CELL *cell, const charargtype,
13       void *argp);
14
15

DESCRIPTION

17       The libmawk_set_cell() function modifies  the  value  of  a  mawk  cell
18       (variable).  Argumetn  argtype is a format character that describes the
19       type of the payload (accessed trough vararg).
20
21       The libmawk_set_cellp() function performs the same action but accepts a
22       generic pointer to the payload.
23
24       Format character is one of the followings:
25
26        'd' for int payload
27
28        'f' for double payload
29
30        's' for (zero terminated) char * payload.
31
32Argument m is a libmawk context previously returned by libmawk_initialize() or
33libmawk_initialize_stage3().
34
35

RETURN VALUE

37       A pointer to the cell modified.
38

SEE ALSO

40       libmawk_initialize_stage(3libmawk), libmawk_initialize(3libmawk),  lib‐
41       mawk_get_var(3libmawk).
42
43
44
45libmawk                           2009-08-10               LIBMAWK_SET_CELL(3)
Impressum