[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.c

[cdecl] and const keyword

MaciekL

2/9/2011 1:44:00 PM

Hi,

[1]
/> cdecl explain "int test(char *)"
declare test as function (pointer to char) returning int

[2]
/> cdecl explain "int test(const char *)"
declare test as function (pointer to const char) returning int

[3]
/> cdecl explain "int test(char const *)"
syntax error

[2] and [3] are equivalent :)

Regards

--
Maciek