johnjbruin

Diamond Member
Jul 17, 2001
4,401
1
0
what do two ** mean?
one * means pointer

but what do the two ** mean in the following?

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

thanks
 

raptor13

Golden Member
Oct 9, 1999
1,719
0
76
Does it matter where the asterix goes? I thought you could put the asterix after a variable name and it would still be a pointer. Like:

*int

or

int*

and they were synonomous. That must not be the case though because if it was, that line of code wouldn't really make any sense, I don't think, because you can't have a variable named "char." Well, I'm confused.
 

Ameesh

Lifer
Apr 3, 2001
23,686
1
0
it means a pointer to a pointer

in the case of char ** it usually means an array of strings


do you understand why?
 

johnjbruin

Diamond Member
Jul 17, 2001
4,401
1
0
yeah
i figured it out

thanks ameesh, i had to change the way of referencing/dereferencing it


 

Ameesh

Lifer
Apr 3, 2001
23,686
1
0


<< yeah
i figured it out

thanks ameesh, i had to change the way of referencing/dereferencing it
>>




np
 

GermyBoy

Banned
Jun 5, 2001
3,524
0
0
C gurus? Is this for a class or something? I've not seen a book on C w/o including pointers to pointers. I want a free online book about preprocessor jazz though...anyone have links?
 

Ameesh

Lifer
Apr 3, 2001
23,686
1
0
i learned all my preprocesser stuff from example, i would also like to find a nice wuick refrence about it.
 

manly

Lifer
Jan 25, 2000
13,549
4,227
136
A nice quick reference?

K&R is perhaps the only C language book you'll ever need. ;)
 

IcePhoenix

Senior member
Dec 22, 2001
544
0
0
Do you guys think sitting with a book and C++ in front of me that I can learn it from scratch? Is it viable?
 

Ameesh

Lifer
Apr 3, 2001
23,686
1
0


<< A nice quick reference?

K&R is perhaps the only C language book you'll ever need. ;)
>>



it doesnt have a lot of preprocesser stuff in it