This file is indexed.

/usr/share/doc/racket/inside/Structures.html is in racket-doc 6.7-3.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html><head><meta http-equiv="content-type" content="text/html; charset=utf-8"/><title>16&nbsp;Structures</title><link rel="stylesheet" type="text/css" href="../scribble.css" title="default"/><link rel="stylesheet" type="text/css" href="../racket.css" title="default"/><link rel="stylesheet" type="text/css" href="../manual-style.css" title="default"/><link rel="stylesheet" type="text/css" href="../manual-racket.css" title="default"/><link rel="stylesheet" type="text/css" href="../doc-site.css" title="default"/><script type="text/javascript" src="../scribble-common.js"></script><script type="text/javascript" src="../manual-racket.js"></script><script type="text/javascript" src="../doc-site.js"></script><script type="text/javascript" src="../local-redirect/local-redirect.js"></script><script type="text/javascript" src="../local-redirect/local-user-redirect.js"></script><!--[if IE 6]><style type="text/css">.SIEHidden { overflow: hidden; }</style><![endif]--></head><body id="doc-racket-lang-org"><div class="tocset"><div class="tocview"><div class="tocviewlist tocviewlisttopspace"><div class="tocviewtitle"><table cellspacing="0" cellpadding="0"><tr><td style="width: 1em;"><a href="javascript:void(0);" title="Expand/Collapse" class="tocviewtoggle" onclick="TocviewToggle(this,&quot;tocview_0&quot;);">&#9660;</a></td><td></td><td><a href="index.html" class="tocviewlink" data-pltdoc="x">Inside:<span class="mywbr"> &nbsp;</span> Racket C API</a></td></tr></table></div><div class="tocviewsublistonly" style="display: block;" id="tocview_0"><table cellspacing="0" cellpadding="0"><tr><td align="right">1&nbsp;</td><td><a href="overview.html" class="tocviewlink" data-pltdoc="x">Overview</a></td></tr><tr><td align="right">2&nbsp;</td><td><a href="embedding.html" class="tocviewlink" data-pltdoc="x">Embedding into a Program</a></td></tr><tr><td align="right">3&nbsp;</td><td><a href="Writing_Racket_Extensions.html" class="tocviewlink" data-pltdoc="x">Writing Racket Extensions</a></td></tr><tr><td align="right">4&nbsp;</td><td><a href="im_values_types.html" class="tocviewlink" data-pltdoc="x">Values and Types</a></td></tr><tr><td align="right">5&nbsp;</td><td><a href="im_memoryalloc.html" class="tocviewlink" data-pltdoc="x">Memory Allocation</a></td></tr><tr><td align="right">6&nbsp;</td><td><a href="im_env.html" class="tocviewlink" data-pltdoc="x">Namespaces and Modules</a></td></tr><tr><td align="right">7&nbsp;</td><td><a href="Procedures.html" class="tocviewlink" data-pltdoc="x">Procedures</a></td></tr><tr><td align="right">8&nbsp;</td><td><a href="Evaluation.html" class="tocviewlink" data-pltdoc="x">Evaluation</a></td></tr><tr><td align="right">9&nbsp;</td><td><a href="exceptions.html" class="tocviewlink" data-pltdoc="x">Exceptions and Escape Continuations</a></td></tr><tr><td align="right">10&nbsp;</td><td><a href="threads.html" class="tocviewlink" data-pltdoc="x">Threads</a></td></tr><tr><td align="right">11&nbsp;</td><td><a href="config.html" class="tocviewlink" data-pltdoc="x">Parameterizations</a></td></tr><tr><td align="right">12&nbsp;</td><td><a href="contmarks.html" class="tocviewlink" data-pltdoc="x">Continuation Marks</a></td></tr><tr><td align="right">13&nbsp;</td><td><a href="im_encodings.html" class="tocviewlink" data-pltdoc="x">String Encodings</a></td></tr><tr><td align="right">14&nbsp;</td><td><a href="Bignums__Rationals__and_Complex_Numbers.html" class="tocviewlink" data-pltdoc="x">Bignums, Rationals, and Complex Numbers</a></td></tr><tr><td align="right">15&nbsp;</td><td><a href="Ports_and_the_Filesystem.html" class="tocviewlink" data-pltdoc="x">Ports and the Filesystem</a></td></tr><tr><td align="right">16&nbsp;</td><td><a href="" class="tocviewselflink" data-pltdoc="x">Structures</a></td></tr><tr><td align="right">17&nbsp;</td><td><a href="security.html" class="tocviewlink" data-pltdoc="x">Security Guards</a></td></tr><tr><td align="right">18&nbsp;</td><td><a href="Custodians.html" class="tocviewlink" data-pltdoc="x">Custodians</a></td></tr><tr><td align="right">19&nbsp;</td><td><a href="Subprocesses.html" class="tocviewlink" data-pltdoc="x">Subprocesses</a></td></tr><tr><td align="right">20&nbsp;</td><td><a href="Miscellaneous_Utilities.html" class="tocviewlink" data-pltdoc="x">Miscellaneous Utilities</a></td></tr><tr><td align="right"></td><td><a href="doc-index.html" class="tocviewlink" data-pltdoc="x">Index</a></td></tr></table></div></div></div></div><div class="maincolumn"><div class="main"><div class="navsettop"><span class="navleft"><form class="searchform"><input class="searchbox" style="color: #888;" type="text" value="...search manuals..." title="Enter a search string to search the manuals" onkeypress="return DoSearchKey(event, this, &quot;6.7&quot;, &quot;../&quot;);" onfocus="this.style.color=&quot;black&quot;; this.style.textAlign=&quot;left&quot;; if (this.value == &quot;...search manuals...&quot;) this.value=&quot;&quot;;" onblur="if (this.value.match(/^ *$/)) { this.style.color=&quot;#888&quot;; this.style.textAlign=&quot;center&quot;; this.value=&quot;...search manuals...&quot;; }"/></form>&nbsp;&nbsp;<a href="../index.html" title="up to the documentation top" data-pltdoc="x" onclick="return GotoPLTRoot(&quot;6.7&quot;);">top</a></span><span class="navright">&nbsp;&nbsp;<a href="Ports_and_the_Filesystem.html" title="backward to &quot;15 Ports and the Filesystem&quot;" data-pltdoc="x">&larr; prev</a>&nbsp;&nbsp;<a href="index.html" title="up to &quot;Inside: Racket C API&quot;" data-pltdoc="x">up</a>&nbsp;&nbsp;<a href="security.html" title="forward to &quot;17 Security Guards&quot;" data-pltdoc="x">next &rarr;</a></span>&nbsp;</div><h3 x-source-module="(lib &quot;scribblings/inside/inside.scrbl&quot;)" x-source-pkg="racket-doc" x-part-tag="&quot;Structures&quot;">16<tt>&nbsp;</tt><a name="(part._.Structures)"></a>Structures</h3><p>A new Racket structure type is created with
<a href="#%28cpp._scheme_make_struct_type%29" class="RktStxLink" data-pltdoc="x"><span class="stt">scheme_make_struct_type</span></a>.  This creates the structure type, but
does not generate the constructor, etc.  procedures. The
<a href="#%28cpp._scheme_make_struct_values%29" class="RktStxLink" data-pltdoc="x"><span class="stt">scheme_make_struct_values</span></a> function takes a structure type and
creates these procedures. The <a href="#%28cpp._scheme_make_struct_names%29" class="RktStxLink" data-pltdoc="x"><span class="stt">scheme_make_struct_names</span></a> function
generates the standard structure procedures names given the structure
type&rsquo;s name.  Instances of a structure type are created with
<a href="#%28cpp._scheme_make_struct_instance%29" class="RktStxLink" data-pltdoc="x"><span class="stt">scheme_make_struct_instance</span></a> and the function
<a href="#%28cpp._scheme_is_struct_instance%29" class="RktStxLink" data-pltdoc="x"><span class="stt">scheme_is_struct_instance</span></a> tests a structure&rsquo;s type.  The
<a href="#%28cpp._scheme_struct_ref%29" class="RktStxLink" data-pltdoc="x"><span class="stt">scheme_struct_ref</span></a> and <a href="#%28cpp._scheme_struct_set%29" class="RktStxLink" data-pltdoc="x"><span class="stt">scheme_struct_set</span></a> functions access
or modify a field of a structure.</p><p>The structure procedure values and names generated by
<a href="#%28cpp._scheme_make_struct_values%29" class="RktStxLink" data-pltdoc="x"><span class="stt">scheme_make_struct_values</span></a> and <a href="#%28cpp._scheme_make_struct_names%29" class="RktStxLink" data-pltdoc="x"><span class="stt">scheme_make_struct_names</span></a> can
be restricted by passing any combination of these flags:</p><ul><li><p><span class="stt">SCHEME_STRUCT_NO_TYPE</span> &#8212;<wbr></wbr> the structure type
value/name is not returned.</p></li><li><p><span class="stt">SCHEME_STRUCT_NO_CONSTR</span> &#8212;<wbr></wbr> the constructor procedure
value/name is not returned.</p></li><li><p><span class="stt">SCHEME_STRUCT_NO_PRED</span>&#8212;<wbr></wbr> the predicate procedure
value/name is not returned.</p></li><li><p><span class="stt">SCHEME_STRUCT_NO_GET</span> &#8212;<wbr></wbr> the selector procedure
values/names are not returned.</p></li><li><p><span class="stt">SCHEME_STRUCT_NO_SET</span> &#8212;<wbr></wbr> the mutator procedure
values/names are not returned.</p></li><li><p><span class="stt">SCHEME_STRUCT_GEN_GET</span> &#8212;<wbr></wbr> the field-independent
selector procedure value/name is returned.</p></li><li><p><span class="stt">SCHEME_STRUCT_GEN_SET</span> &#8212;<wbr></wbr> the field-independent
mutator procedure value/name is returned.</p></li><li><p><span class="stt">SCHEME_STRUCT_NO_MAKE_PREFIX</span> &#8212;<wbr></wbr> the constructor name
omits a <span class="RktSym">make-</span> prefix, like <span class="RktSym">struct</span> instead of
<span class="RktSym"><a href="https://download.racket-lang.org/docs/6.7/html/local-redirect/index.html?doc=reference&amp;rel=define-struct.html%23%2528form._%2528%2528lib._racket%252Fprivate%252Fbase..rkt%2529._define-struct%2529%2529&amp;version=6.7" class="RktStxLink Sq" data-pltdoc="x">define-struct</a></span>.</p></li></ul><p>When all values or names are returned, they are returned as an array
with the following order: structure type, constructor, predicate,
first selector, first mutator, second selector, etc.,
field-independent select, field-independent mutator. When particular
values/names are omitted, the array is compressed accordingly.</p><p><div class="SIntrapara"><table cellspacing="0" cellpadding="0" class="boxed"><tr><td><table cellspacing="0" cellpadding="0"><tr><td><p><span class="stt">Scheme_Object*</span></p></td><td><p><span class="hspace">&nbsp;</span></p></td><td><p><a name="(cpp._scheme_make_struct_type)"></a><a name="(idx._(gentag._567._(lib._scribblings/inside/inside..scrbl)))"></a><a href="#%28cpp._scheme_make_struct_type%29" class="RktStxLink" data-pltdoc="x"><span class="stt">scheme_make_struct_type</span></a></p></td><td><p><span class="stt">(</span></p></td><td><p><span class="stt">Scheme_Object*</span><span class="hspace">&nbsp;</span><span style="font-style: italic">base_name</span><span class="stt">,</span></p></td></tr><tr><td><p><span class="hspace">&nbsp;</span></p></td><td><p><span class="hspace">&nbsp;</span></p></td><td><p><span class="hspace">&nbsp;</span></p></td><td><p><span class="hspace">&nbsp;</span></p></td><td><p><span class="stt">Scheme_Object*</span><span class="hspace">&nbsp;</span><span style="font-style: italic">super_type</span><span class="stt">,</span></p></td></tr><tr><td><p><span class="hspace">&nbsp;</span></p></td><td><p><span class="hspace">&nbsp;</span></p></td><td><p><span class="hspace">&nbsp;</span></p></td><td><p><span class="hspace">&nbsp;</span></p></td><td><p><span class="stt">Scheme_Object*</span><span class="hspace">&nbsp;</span><span style="font-style: italic">inspector</span><span class="stt">,</span></p></td></tr><tr><td><p><span class="hspace">&nbsp;</span></p></td><td><p><span class="hspace">&nbsp;</span></p></td><td><p><span class="hspace">&nbsp;</span></p></td><td><p><span class="hspace">&nbsp;</span></p></td><td><p><span class="stt">int</span><span class="hspace">&nbsp;</span><span style="font-style: italic">num_init_fields</span><span class="stt">,</span></p></td></tr><tr><td><p><span class="hspace">&nbsp;</span></p></td><td><p><span class="hspace">&nbsp;</span></p></td><td><p><span class="hspace">&nbsp;</span></p></td><td><p><span class="hspace">&nbsp;</span></p></td><td><p><span class="stt">int</span><span class="hspace">&nbsp;</span><span style="font-style: italic">num_auto_fields</span><span class="stt">,</span></p></td></tr><tr><td><p><span class="hspace">&nbsp;</span></p></td><td><p><span class="hspace">&nbsp;</span></p></td><td><p><span class="hspace">&nbsp;</span></p></td><td><p><span class="hspace">&nbsp;</span></p></td><td><p><span class="stt">Scheme_Object*</span><span class="hspace">&nbsp;</span><span style="font-style: italic">auto_val</span><span class="stt">,</span></p></td></tr><tr><td><p><span class="hspace">&nbsp;</span></p></td><td><p><span class="hspace">&nbsp;</span></p></td><td><p><span class="hspace">&nbsp;</span></p></td><td><p><span class="hspace">&nbsp;</span></p></td><td><p><span class="stt">Scheme_Object*</span><span class="hspace">&nbsp;</span><span style="font-style: italic">properties</span><span class="stt">,</span></p></td></tr><tr><td><p><span class="hspace">&nbsp;</span></p></td><td><p><span class="hspace">&nbsp;</span></p></td><td><p><span class="hspace">&nbsp;</span></p></td><td><p><span class="hspace">&nbsp;</span></p></td><td><p><span class="stt">Scheme_Object*</span><span class="hspace">&nbsp;</span><span style="font-style: italic">guard</span><span class="stt">)</span></p></td></tr></table></td></tr></table></div><div class="SIntrapara">Creates and returns a new structure type. The <span style="font-style: italic">base_name</span>
 argument is used as the name of the new structure type; it must be a
 symbol. The <span style="font-style: italic">super_type</span> argument should be <span class="stt">NULL</span> or an
 existing structure type to use as the super-type. The <span style="font-style: italic">inspector</span>
 argument should be <span class="stt">NULL</span> or an inspector to manage the type.
 The <span style="font-style: italic">num_init_fields</span> argument specifies the number of fields
 for instances of this structure type that have corresponding
 constructor arguments. (If a super-type is used, this is the number
 of additional fields, rather than the total number.)  The
 <span style="font-style: italic">num_auto_fields</span> argument specifies the number of additional
 fields that have no corresponding constructor arguments, and they are
 initialized to <span style="font-style: italic">auto_val</span>. The <span style="font-style: italic">properties</span> argument is a
 list of property-value pairs. The <span style="font-style: italic">guard</span> argument is either NULL
 or a procedure to use as a constructor guard.</div></p><p><div class="SIntrapara"><table cellspacing="0" cellpadding="0" class="boxed"><tr><td><table cellspacing="0" cellpadding="0"><tr><td colspan="3"><p><span class="stt">Scheme_Object**</span></p></td></tr><tr><td><p><a name="(cpp._scheme_make_struct_names)"></a><a name="(idx._(gentag._568._(lib._scribblings/inside/inside..scrbl)))"></a><a href="#%28cpp._scheme_make_struct_names%29" class="RktStxLink" data-pltdoc="x"><span class="stt">scheme_make_struct_names</span></a></p></td><td><p><span class="stt">(</span></p></td><td><p><span class="stt">Scheme_Object*</span><span class="hspace">&nbsp;</span><span style="font-style: italic">base_name</span><span class="stt">,</span></p></td></tr><tr><td><p><span class="hspace">&nbsp;</span></p></td><td><p><span class="hspace">&nbsp;</span></p></td><td><p><span class="stt">Scheme_Object*</span><span class="hspace">&nbsp;</span><span style="font-style: italic">field_names</span><span class="stt">,</span></p></td></tr><tr><td><p><span class="hspace">&nbsp;</span></p></td><td><p><span class="hspace">&nbsp;</span></p></td><td><p><span class="stt">int</span><span class="hspace">&nbsp;</span><span style="font-style: italic">flags</span><span class="stt">,</span></p></td></tr><tr><td><p><span class="hspace">&nbsp;</span></p></td><td><p><span class="hspace">&nbsp;</span></p></td><td><p><span class="stt">int*</span><span class="hspace">&nbsp;</span><span style="font-style: italic">count_out</span><span class="stt">)</span></p></td></tr></table></td></tr></table></div><div class="SIntrapara">Creates and returns an array of standard structure value name
symbols. The <span style="font-style: italic">base_name</span> argument is used as the name of the
structure type; it should be the same symbol passed to the associated
call to <a href="#%28cpp._scheme_make_struct_type%29" class="RktStxLink" data-pltdoc="x"><span class="stt">scheme_make_struct_type</span></a>. The <span style="font-style: italic">field_names</span> argument
is a (Racket) list of field name symbols. The <span style="font-style: italic">flags</span> argument
specifies which names should be generated, and if <span style="font-style: italic">count_out</span> is
not <span class="stt">NULL</span>, <span style="font-style: italic">count_out</span> is filled with the number of names
returned in the array.</div></p><p><div class="SIntrapara"><table cellspacing="0" cellpadding="0" class="boxed"><tr><td><table cellspacing="0" cellpadding="0"><tr><td colspan="3"><p><span class="stt">Scheme_Object**</span></p></td></tr><tr><td><p><a name="(cpp._scheme_make_struct_values)"></a><a name="(idx._(gentag._569._(lib._scribblings/inside/inside..scrbl)))"></a><a href="#%28cpp._scheme_make_struct_values%29" class="RktStxLink" data-pltdoc="x"><span class="stt">scheme_make_struct_values</span></a></p></td><td><p><span class="stt">(</span></p></td><td><p><span class="stt">Scheme_Object*</span><span class="hspace">&nbsp;</span><span style="font-style: italic">struct_type</span><span class="stt">,</span></p></td></tr><tr><td><p><span class="hspace">&nbsp;</span></p></td><td><p><span class="hspace">&nbsp;</span></p></td><td><p><span class="stt">Scheme_Object**</span><span class="hspace">&nbsp;</span><span style="font-style: italic">names</span><span class="stt">,</span></p></td></tr><tr><td><p><span class="hspace">&nbsp;</span></p></td><td><p><span class="hspace">&nbsp;</span></p></td><td><p><span class="stt">int</span><span class="hspace">&nbsp;</span><span style="font-style: italic">count</span><span class="stt">,</span></p></td></tr><tr><td><p><span class="hspace">&nbsp;</span></p></td><td><p><span class="hspace">&nbsp;</span></p></td><td><p><span class="stt">int</span><span class="hspace">&nbsp;</span><span style="font-style: italic">flags</span><span class="stt">)</span></p></td></tr></table></td></tr></table></div><div class="SIntrapara">Creates and returns an array of the standard structure value and procedure values
for <span style="font-style: italic">struct_type</span>. The <span style="font-style: italic">struct_type</span> argument must be a structure type
value created by <a href="#%28cpp._scheme_make_struct_type%29" class="RktStxLink" data-pltdoc="x"><span class="stt">scheme_make_struct_type</span></a>. The <span style="font-style: italic">names</span> procedure
must be an array of name symbols, generally the array returned by
<a href="#%28cpp._scheme_make_struct_names%29" class="RktStxLink" data-pltdoc="x"><span class="stt">scheme_make_struct_names</span></a>. The <span style="font-style: italic">count</span> argument specifies the
length of the <span style="font-style: italic">names</span> array (and therefore the number of expected
return values) and the <span style="font-style: italic">flags</span> argument specifies which values
should be generated.</div></p><p><div class="SIntrapara"><table cellspacing="0" cellpadding="0" class="boxed"><tr><td><table cellspacing="0" cellpadding="0"><tr><td colspan="3"><p><span class="stt">Scheme_Object*</span></p></td></tr><tr><td><p><a name="(cpp._scheme_make_struct_instance)"></a><a name="(idx._(gentag._570._(lib._scribblings/inside/inside..scrbl)))"></a><a href="#%28cpp._scheme_make_struct_instance%29" class="RktStxLink" data-pltdoc="x"><span class="stt">scheme_make_struct_instance</span></a></p></td><td><p><span class="stt">(</span></p></td><td><p><span class="stt">Scheme_Object*</span><span class="hspace">&nbsp;</span><span style="font-style: italic">struct_type</span><span class="stt">,</span></p></td></tr><tr><td><p><span class="hspace">&nbsp;</span></p></td><td><p><span class="hspace">&nbsp;</span></p></td><td><p><span class="stt">int</span><span class="hspace">&nbsp;</span><span style="font-style: italic">argc</span><span class="stt">,</span></p></td></tr><tr><td><p><span class="hspace">&nbsp;</span></p></td><td><p><span class="hspace">&nbsp;</span></p></td><td><p><span class="stt">Scheme_Object**</span><span class="hspace">&nbsp;</span><span style="font-style: italic">argv</span><span class="stt">)</span></p></td></tr></table></td></tr></table></div><div class="SIntrapara">Creates an instance of the structure type <span style="font-style: italic">struct_type</span>. The
<span style="font-style: italic">argc</span> and <span style="font-style: italic">argv</span> arguments provide the field values for the
new instance.</div></p><p><div class="SIntrapara"><table cellspacing="0" cellpadding="0" class="boxed"><tr><td><table cellspacing="0" cellpadding="0"><tr><td><p><span class="stt">int</span></p></td><td><p><span class="hspace">&nbsp;</span></p></td><td><p><a name="(cpp._scheme_is_struct_instance)"></a><a name="(idx._(gentag._571._(lib._scribblings/inside/inside..scrbl)))"></a><a href="#%28cpp._scheme_is_struct_instance%29" class="RktStxLink" data-pltdoc="x"><span class="stt">scheme_is_struct_instance</span></a></p></td><td><p><span class="stt">(</span></p></td><td><p><span class="stt">Scheme_Object*</span><span class="hspace">&nbsp;</span><span style="font-style: italic">struct_type</span><span class="stt">,</span></p></td></tr><tr><td><p><span class="hspace">&nbsp;</span></p></td><td><p><span class="hspace">&nbsp;</span></p></td><td><p><span class="hspace">&nbsp;</span></p></td><td><p><span class="hspace">&nbsp;</span></p></td><td><p><span class="stt">Scheme_Object*</span><span class="hspace">&nbsp;</span><span style="font-style: italic">v</span><span class="stt">)</span></p></td></tr></table></td></tr></table></div><div class="SIntrapara">Returns 1 if <span style="font-style: italic">v</span> is an instance of <span style="font-style: italic">struct_type</span> or 0 otherwise.</div></p><p><div class="SIntrapara"><table cellspacing="0" cellpadding="0" class="boxed"><tr><td><table cellspacing="0" cellpadding="0"><tr><td><p><span class="stt">Scheme_Object*</span></p></td><td><p><span class="hspace">&nbsp;</span></p></td><td><p><a name="(cpp._scheme_struct_ref)"></a><a name="(idx._(gentag._572._(lib._scribblings/inside/inside..scrbl)))"></a><a href="#%28cpp._scheme_struct_ref%29" class="RktStxLink" data-pltdoc="x"><span class="stt">scheme_struct_ref</span></a></p></td><td><p><span class="stt">(</span></p></td><td><p><span class="stt">Scheme_Object*</span><span class="hspace">&nbsp;</span><span style="font-style: italic">s</span><span class="stt">,</span></p></td></tr><tr><td><p><span class="hspace">&nbsp;</span></p></td><td><p><span class="hspace">&nbsp;</span></p></td><td><p><span class="hspace">&nbsp;</span></p></td><td><p><span class="hspace">&nbsp;</span></p></td><td><p><span class="stt">int</span><span class="hspace">&nbsp;</span><span style="font-style: italic">n</span><span class="stt">)</span></p></td></tr></table></td></tr></table></div><div class="SIntrapara">Returns the <span style="font-style: italic">n</span>th field (counting from 0) in the structure <span style="font-style: italic">s</span>.</div></p><p><div class="SIntrapara"><table cellspacing="0" cellpadding="0" class="boxed"><tr><td><table cellspacing="0" cellpadding="0"><tr><td><p><span class="stt">void</span></p></td><td><p><span class="hspace">&nbsp;</span></p></td><td><p><a name="(cpp._scheme_struct_set)"></a><a name="(idx._(gentag._573._(lib._scribblings/inside/inside..scrbl)))"></a><a href="#%28cpp._scheme_struct_set%29" class="RktStxLink" data-pltdoc="x"><span class="stt">scheme_struct_set</span></a></p></td><td><p><span class="stt">(</span></p></td><td><p><span class="stt">Scheme_Object*</span><span class="hspace">&nbsp;</span><span style="font-style: italic">s</span><span class="stt">,</span></p></td></tr><tr><td><p><span class="hspace">&nbsp;</span></p></td><td><p><span class="hspace">&nbsp;</span></p></td><td><p><span class="hspace">&nbsp;</span></p></td><td><p><span class="hspace">&nbsp;</span></p></td><td><p><span class="stt">int</span><span class="hspace">&nbsp;</span><span style="font-style: italic">n</span><span class="stt">,</span></p></td></tr><tr><td><p><span class="hspace">&nbsp;</span></p></td><td><p><span class="hspace">&nbsp;</span></p></td><td><p><span class="hspace">&nbsp;</span></p></td><td><p><span class="hspace">&nbsp;</span></p></td><td><p><span class="stt">Scheme_Object*</span><span class="hspace">&nbsp;</span><span style="font-style: italic">v</span><span class="stt">)</span></p></td></tr></table></td></tr></table></div><div class="SIntrapara">Sets the <span style="font-style: italic">n</span>th field (counting from 0) in the structure <span style="font-style: italic">s</span> to <span style="font-style: italic">v</span>.</div></p><div class="navsetbottom"><span class="navleft"><form class="searchform"><input class="searchbox" style="color: #888;" type="text" value="...search manuals..." title="Enter a search string to search the manuals" onkeypress="return DoSearchKey(event, this, &quot;6.7&quot;, &quot;../&quot;);" onfocus="this.style.color=&quot;black&quot;; this.style.textAlign=&quot;left&quot;; if (this.value == &quot;...search manuals...&quot;) this.value=&quot;&quot;;" onblur="if (this.value.match(/^ *$/)) { this.style.color=&quot;#888&quot;; this.style.textAlign=&quot;center&quot;; this.value=&quot;...search manuals...&quot;; }"/></form>&nbsp;&nbsp;<a href="../index.html" title="up to the documentation top" data-pltdoc="x" onclick="return GotoPLTRoot(&quot;6.7&quot;);">top</a></span><span class="navright">&nbsp;&nbsp;<a href="Ports_and_the_Filesystem.html" title="backward to &quot;15 Ports and the Filesystem&quot;" data-pltdoc="x">&larr; prev</a>&nbsp;&nbsp;<a href="index.html" title="up to &quot;Inside: Racket C API&quot;" data-pltdoc="x">up</a>&nbsp;&nbsp;<a href="security.html" title="forward to &quot;17 Security Guards&quot;" data-pltdoc="x">next &rarr;</a></span>&nbsp;</div></div></div><div id="contextindicator">&nbsp;</div></body></html>