Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8674369
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T19:41:38+00:00 2026-06-12T19:41:38+00:00

I have never programmed in C, so please can anyone tell me what does

  • 0

I have never programmed in C, so please can anyone tell me what does this construction do:

void funcName(void * self)
{ ... }

as far as I understood
the funcName receives the pointer to the unknown data and this function receives nothing

but why there is a void * self

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-12T19:41:40+00:00Added an answer on June 12, 2026 at 7:41 pm

    This is a function that takes a void pointer – a pointer without a specific type. Void pointer type lets you pass a pointer to any data type to a function that is declared like that. The function will have to cast the pointer to an appropriate type before reading/writing the data from it, or pass the pointer on to other functions that take void*.

    Any pointer can be cast to void*, implicitly or explicitly. For example, you can call funcName like this:

    int *ptr = malloc(100*sizeof(int));
    funcName(ptr); // No error
    

    You can then call the same function with a different pointer type:

    struct mystruct_t *ptr = malloc(100*sizeof(mystruct_t));
    funcName(ptr); // Again, no error
    

    Judging from the name of the pointer, self, it is likely that the function is trying to emulate object-oriented style of programming with constructs available in C. Instead of passing the pointer to data implicitly the way member-functions do, this style passes a pointer to data explicitly. The pointer is often called this or self.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have to ask this question because I've never programmed except in an intro
I have never programmed web sites. I know that I can create web sites
I have never programmed a gadget for Vista or Seven, but I would like
I have never programmed in visual basic before and my boss just told me
I have never used Foxpro before. Can you convert the following Foxpro code into
I have never come across this issue but most recently I noticed that a
I've never programmed in java or eclipse before, although I have used c# and
(First, I chose to do this in Python because I never programmed in it
I have never programmed VB, but a university course forcibly requires me to use
I have never programmed anything in php before and haven't touched html in 10

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.