From WikiChip
mirc/commands/hfree
< mirc‎ | commands
Revision as of 04:58, 4 December 2013 by David (talk | contribs) (Created page with "The '''/hfree command''' destroys a previously created hash table(s). The /hfree command destroys a previously created hash table(s). A hash table can be created via the /hm...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

The /hfree command destroys a previously created hash table(s). The /hfree command destroys a previously created hash table(s). A hash table can be created via the /hmake command.

Synopsis

/hfree [-sw] <table>

Switches

  • -s - Displays debug information
  • -w - Treats <table> as a wildcard and deletes all matching tables.

Parameters

  • <table> - the table you wish to delete.

Example

alias del_hash {
  ;makes the hash table 'hash'
  hmake hash
  echo -a $hget(hash) : $hget(hash).size
  ;makes the hash table 'h' with 10 buckets
  hmake h 10
  ;makes the hash table 'has' with 20 buckets
  hmake has 20
  ;deletes hash table 'hash'
  hfree -s hash
  echo -a $hget(h) : $hget(h).size - $hget(has) : $hget(has).size
  ;deletes any hash tables matching h*
  hfree -sw h*
}

Compatibility

Added: mIRC v5.8

Added On: 05/09/2000


Note: Individual switches were not taken into consideration.

See also