---
layout: doc
title: objects / all_inventory
---
# all_inventory

### NAME

    all_inventory() - return the inventory of an object

### SYNOPSIS

    object *all_inventory( object ob );

### DESCRIPTION

    Returns an array of the objects contained in the inventory of <ob>.

    If ob is not passed, this parameter defaults to this_object().

### SEE ALSO

    first_inventory(3), next_inventory(3), deep_inventory(3)

