Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

char **stringp

Status
Not open for further replies.

escafia

Programmer
Feb 4, 2006
2
PT
hi.
i've a question.

char *strsep(char **stringp, const char *delim);

what means char **stringp ??
Is it a pointer to a string?

if i do:

char lol[128];
strsep(&lol, ".");

is it correct?

tkx
 
type* x; is a pointer to x.
type** x; is a pointer to a pointer to x.

Your syntax might work on some compilers, but not on mine. You can do this to get it to work:
Code:
char lol[128];
char* pLol = lol;
// set lol to some string.
strsep( &pLol, "." );
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top