Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
T

tushar_patil

@tushar_patil
About
Posts
1
Topics
0
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Pointer Casting warning
    T tushar_patil

    hi I dnt knw clearly what type of

    sgnl_action.sa_handler

    is. But this is a little piece of code without any warning and errors might be helpful to you.

    #include <stdio.h>

    void (*sa_handler)(int); // function pointer takes int type
    // arg and retuns void as we have to
    //typecast func handle_alarm to this type

    void handle_alarm() {
    printf("helooo");
    }

    void main(int argc, _TCHAR* argv[])
    {
    handle_alarm(); //normal call to function
    sa_handler = (void (*)(int))handle_alarm; // compatible typecast
    sa_handler(0); // call with a function pointer
    // as it takes one argument we have
    //to pass a dummy arg.
    }

    C / C++ / MFC c++ question
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups