Codebase list libmawk / a8c8f483-bda4-4dcb-b181-d7b9964ade2c/main doc / libmawk_set_cell.3libmawk.html

Tree @a8c8f483-bda4-4dcb-b181-d7b9964ade2c/main (Download .tar.gz)

libmawk_set_cell.3libmawk.html @a8c8f483-bda4-4dcb-b181-d7b9964ade2c/mainraw · history · blame

<!-- Creator     : groff version 1.22.2 -->
<!-- CreationDate: Sat Jun 14 14:27:32 2014 -->
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
<meta name="generator" content="groff -Thtml, see">
<meta http-equiv="Content-Type" content="text/html; charset=US-ASCII">
<meta name="Content-Style" content="text/css">
<style type="text/css">
       p       { margin-top: 0; margin-bottom: 0; vertical-align: top }
       pre     { margin-top: 0; margin-bottom: 0; vertical-align: top }
       table   { margin-top: 0; margin-bottom: 0; vertical-align: top }
       h1      { text-align: center }


<h1 align="center">LIBMAWK_SET_CELL</h1>

<a href="#NAME">NAME</a><br>
<a href="#SYNOPSIS">SYNOPSIS</a><br>
<a href="#RETURN VALUE">RETURN VALUE</a><br>
<a href="#SEE ALSO">SEE ALSO</a><br>


<a name="NAME"></a>

<p style="margin-left:11%; margin-top: 1em">libmawk_set_cell
&minus; set the value of a mawk cell.</p>

<a name="SYNOPSIS"></a>

<p style="margin-left:11%; margin-top: 1em"><b>#include

<p style="margin-left:11%; margin-top: 1em"><b>CELL
*libmawk_set_cell(mawk_state_t *</b><i>m</i><b>, CELL
*</b><i>cell</i><b>, const
char</b><i>argtype</i><b>,</b><i>...</i><b>); <br>
CELL *libmawk_set_cellp(mawk_state_t *</b><i>m</i><b>, CELL
*</b><i>cell</i><b>, const char</b><i>argtype</i><b>, void

<a name="DESCRIPTION"></a>

<p style="margin-left:11%; margin-top: 1em">The
<b>libmawk_set_cell</b>() function modifies the value of a
mawk cell (variable). Argumetn argtype is a format character
that describes the type of the payload (accessed trough

<p style="margin-left:11%; margin-top: 1em">The
<b>libmawk_set_cellp</b>() function performs the same action
but accepts a generic pointer to the payload.</p>

<p style="margin-left:11%; margin-top: 1em"><b>Format
character</b> is one of the followings: <br>
&rsquo;d&rsquo; for int payload <br>
&rsquo;f&rsquo; for double payload <br>
&rsquo;s&rsquo; for (zero terminated) char * payload.</p>

<p style="margin-top: 1em">Argument m is a libmawk context
previously returned by libmawk_initialize() or

<a name="RETURN VALUE"></a>

<p style="margin-left:11%; margin-top: 1em">A pointer to
the cell modified.</p>

<a name="SEE ALSO"></a>

<p style="margin-left:11%; margin-top: 1em"><b>libmawk_initialize_stage</b>(3libmawk),