Author Topic: pointer in tyledef  (Read 1112 times)

thrushitha

  • Full Member
  • ***
  • Posts: 26
pointer in tyledef
« on: July 13, 2011, 01:23:00 am »
what does this line mean??


typedef void (*PCONTENT_FUNC)(void *);




thanx in advance

kathir

  • Administrator
  • Sr. Member
  • *****
  • Posts: 283
Re: pointer in tyledef
« Reply #1 on: July 13, 2011, 04:30:49 pm »
what does this line mean??
typedef void (*PCONTENT_FUNC)(void *);

thanx in advance

It is a typedef for function pointer declaration.

void (<function name>*) (void*) signature can be represented using the typedef PCONTENT_FUNC going forward.

thrushitha

  • Full Member
  • ***
  • Posts: 26
Re: pointer in tyledef
« Reply #2 on: July 13, 2011, 11:42:43 pm »
going forward means??
dnt mind if its a simply or a silly query, i didnt understand so i asked

administrator

  • Administrator
  • Full Member
  • *****
  • Posts: 69
Re: pointer in tyledef
« Reply #3 on: July 14, 2011, 11:46:03 pm »
going forward means??
dnt mind if its a simply or a silly query, i didnt understand so i asked

It means any statements comes after the typedef function pointer declaration statement.

 


Disclaimer: This web site is for educational and informational purposes only. Click here to read the Disclaimer.
Content copyright 2010-2014. Kathiresan. All rights reserved.
This page is using SMF version 2.0.1