{"id":1158,"date":"2025-05-21T12:23:11","date_gmt":"2025-05-21T11:23:11","guid":{"rendered":"https:\/\/monkey.ploogie.co.uk\/?page_id=1158"},"modified":"2025-05-21T12:23:11","modified_gmt":"2025-05-21T11:23:11","slug":"mwnci-addresscount-function","status":"publish","type":"page","link":"https:\/\/monkey.ploogie.co.uk\/index.php\/mwnci-addresscount-function\/","title":{"rendered":"Mwnci addresscount() Function"},"content":{"rendered":"<h2>Syntax<\/h2>\n<p>addresscount<strong>(<em>string<\/em>)<\/strong><\/p>\n<h2>Description<\/h2>\n<p>The <i>addresscount()<\/i> function returns an integer that represents the total amount of IP address in the give CIDR block.<\/p>\n<h2>Example<\/h2>\n<pre>include(\"net\")\r\nRange=\"192.168.0.0\/28\"\r\nCount=addresscount(Range)\r\nprintln(\"There are \", Count, \" IP addresses in the CIDR block: \", Range)\r\n\r\nThere are 16 IP addresses in the CIDR block: 192.168.0.0\/28<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Syntax addresscount(string) Description The addresscount() function returns an integer that represents the total amount of IP address in the give CIDR block. Example include(&#8220;net&#8221;) Range=&#8221;192.168.0.0\/28&#8243; Count=addresscount(Range) println(&#8220;There are &#8220;, Count, &#8221; IP addresses in the CIDR block: &#8220;, Range) There are 16 IP addresses in the CIDR block: 192.168.0.0\/28<\/p>\n","protected":false},"author":2,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-1158","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/monkey.ploogie.co.uk\/index.php\/wp-json\/wp\/v2\/pages\/1158","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/monkey.ploogie.co.uk\/index.php\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/monkey.ploogie.co.uk\/index.php\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/monkey.ploogie.co.uk\/index.php\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/monkey.ploogie.co.uk\/index.php\/wp-json\/wp\/v2\/comments?post=1158"}],"version-history":[{"count":1,"href":"https:\/\/monkey.ploogie.co.uk\/index.php\/wp-json\/wp\/v2\/pages\/1158\/revisions"}],"predecessor-version":[{"id":1159,"href":"https:\/\/monkey.ploogie.co.uk\/index.php\/wp-json\/wp\/v2\/pages\/1158\/revisions\/1159"}],"wp:attachment":[{"href":"https:\/\/monkey.ploogie.co.uk\/index.php\/wp-json\/wp\/v2\/media?parent=1158"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}