Prism 6.0 Reference Manual

EXAMPLE

The default attribute is variable:

(prism) whatis NameName *Name;

Use the 'struct' keyword to ask about a type. In this example there are two types spelled Name. One Name is a typedef:

(prism) whatis struct Name 
     #More than one identifier 'Name'.
Select one of the following names:
0) Cancel
1) `a.out`whatis.c`struct Name
2) `a.out`whatis.c`Name
> 2
typedef struct Name  Name;

The other Name is a struct:

(prism) whatis struct Name
More than one identifier 'Name'.
Select one of the following names:
0) Cancel
1) `a.out`whatis.c`struct Name
2) `a.out`whatis.c`Name
> 1 
struct Name {
char last[50];
char first[40];
char middle;
struct Name *next;
};