TIP: Click on subject to list as thread! ANSI
echo: cis.languages
to: SCOTT HOWELL 70270,641 (X)
from: Pete Lyall 76703,4230
date: 1991-02-17 11:44:39
subject: #9534-the ..p syntax in `C`

#: 9539 S3/Languages
    17-Feb-91  11:44:39
Sb: #9534-the **p syntax in 'C'
Fm: Pete Lyall 76703,4230
To: SCOTT HOWELL 70270,641 (X)

Scott -

 char **p = &dummy;

Says: p is a pointer to a pointer that points to a char type. The &dummy says
assign the address of dummy (i.e. a pointer) to that slot. Typically double
indirects are used with arrays of pointer, like **argv for instance.

The 'char **match(p,name) says that match is a function that returns a pointer
to a pointer to a type of char.

Pete

SOURCE: compuserve via textfiles.com

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.