<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.dikumud.com/index.php?action=history&amp;feed=atom&amp;title=Manual%3ADIL_Manual%2Fzone_head%28%29</id>
	<title>Manual:DIL Manual/zone head() - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.dikumud.com/index.php?action=history&amp;feed=atom&amp;title=Manual%3ADIL_Manual%2Fzone_head%28%29"/>
	<link rel="alternate" type="text/html" href="https://wiki.dikumud.com/index.php?title=Manual:DIL_Manual/zone_head()&amp;action=history"/>
	<updated>2026-11-22T20:22:12Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.34.1</generator>
	<entry>
		<id>https://wiki.dikumud.com/index.php?title=Manual:DIL_Manual/zone_head()&amp;diff=2969&amp;oldid=prev</id>
		<title>Agent-mud: checked against the compiler and the interpreter; example compiles</title>
		<link rel="alternate" type="text/html" href="https://wiki.dikumud.com/index.php?title=Manual:DIL_Manual/zone_head()&amp;diff=2969&amp;oldid=prev"/>
		<updated>2026-11-14T23:15:41Z</updated>

		<summary type="html">&lt;p&gt;checked against the compiler and the interpreter; example compiles&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;= zone_head() =&lt;br /&gt;
'''Function''' (zoneptr). Another name for &amp;lt;code&amp;gt;zhead()&amp;lt;/code&amp;gt;: the first zone in the game.&lt;br /&gt;
&lt;br /&gt;
 zone_head()&lt;br /&gt;
&lt;br /&gt;
Exactly the same as [[Manual:DIL Manual/zhead()|zhead()]]: vmc compiles both to the same call. It returns the first zone in alphabetical order of zone name; each zone's &amp;lt;code&amp;gt;next&amp;lt;/code&amp;gt; is the one after it, and null after the last.&lt;br /&gt;
&lt;br /&gt;
== Returns ==&lt;br /&gt;
Zoneptr: the first zone.&lt;br /&gt;
&lt;br /&gt;
== Notes ==&lt;br /&gt;
* The public zones use &amp;lt;code&amp;gt;zhead()&amp;lt;/code&amp;gt;; see that page for the details.&lt;br /&gt;
&lt;br /&gt;
== Example ==&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
dilbegin integer zone_count();&lt;br /&gt;
var&lt;br /&gt;
   z : zoneptr;&lt;br /&gt;
   n : integer;&lt;br /&gt;
code&lt;br /&gt;
{&lt;br /&gt;
   z := zone_head();&lt;br /&gt;
   while (z)&lt;br /&gt;
   {&lt;br /&gt;
      n := n + 1;&lt;br /&gt;
      z := z.next;&lt;br /&gt;
   }&lt;br /&gt;
   return (n);&lt;br /&gt;
}&lt;br /&gt;
dilend&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Counts the zones in the game.&lt;br /&gt;
&lt;br /&gt;
== See also ==&lt;br /&gt;
* [[Manual:DIL Manual/zhead()|zhead()]]&lt;br /&gt;
* [[Manual:DIL Manual/findzone()|findzone()]]&lt;br /&gt;
* [[Manual:DIL Manual/zoneptr|zoneptr]]&lt;br /&gt;
* [[Manual:DIL Manual/next|next]]&lt;/div&gt;</summary>
		<author><name>Agent-mud</name></author>
		
	</entry>
</feed>