Click here to Skip to main content
15,889,992 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: How to wait for folder to finish copy Pin
icsr16-Oct-07 2:21
icsr16-Oct-07 2:21 
GeneralRe: How to wait for folder to finish copy Pin
David Crow16-Oct-07 3:11
David Crow16-Oct-07 3:11 
QuestionRe: How to wait for folder to finish copy Pin
icsr16-Oct-07 4:31
icsr16-Oct-07 4:31 
AnswerRe: How to wait for folder to finish copy Pin
David Crow16-Oct-07 4:45
David Crow16-Oct-07 4:45 
GeneralRe: How to wait for folder to finish copy Pin
icsr16-Oct-07 4:59
icsr16-Oct-07 4:59 
QuestionCreateProcess without Administrator Rights Pin
Michael Bergman15-Oct-07 7:01
Michael Bergman15-Oct-07 7:01 
AnswerRe: CreateProcess without Administrator Rights Pin
Xing Chen15-Oct-07 15:23
Xing Chen15-Oct-07 15:23 
QuestionPlain C Question Pin
#realJSOP15-Oct-07 5:42
mve#realJSOP15-Oct-07 5:42 
I have the following (part of openssl source code)

struct EVP_MD //env_md_st
{
    int type;
    int pkey_type;
    int md_size;
    unsigned long flags;
    int (*init)(EVP_MD_CTX *ctx);
    int (*update)(EVP_MD_CTX *ctx,const void *data,size_t count);
    int (*final)(EVP_MD_CTX *ctx,unsigned char *md);
    int (*copy)(EVP_MD_CTX *to,const EVP_MD_CTX *from);
    int (*cleanup)(EVP_MD_CTX *ctx);

    /* FIXME: prototype these some day */
    int (*sign)(int type, const unsigned char *m, unsigned int m_length,
                unsigned char *sigret, unsigned int *siglen, void *key);
    int (*verify)(int type, const unsigned char *m, unsigned int m_length,
                  const unsigned char *sigbuf, unsigned int siglen, void *key);
    int required_pkey_type[5]; /*EVP_PKEY_xxx */
    int block_size;
    int ctx_size; /* how big does the ctx->md_data need to be */
}; // EVP_MD


My question is in regards to the lines that look like this:

int (*init)(EVP_MD_CTX *ctx);


What the hell is that? It looks like a function pointer.




"Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997
-----
"...the staggering layers of obscenity in your statement make it a work of art on so many levels." - Jason Jystad, 10/26/2001


AnswerRe: Plain C Question Pin
Matthew Faithfull15-Oct-07 5:51
Matthew Faithfull15-Oct-07 5:51 
GeneralRe: Plain C Question Pin
#realJSOP15-Oct-07 5:58
mve#realJSOP15-Oct-07 5:58 
GeneralRe: Plain C Question Pin
Matthew Faithfull15-Oct-07 6:13
Matthew Faithfull15-Oct-07 6:13 
GeneralRe: Plain C Question Pin
#realJSOP15-Oct-07 7:13
mve#realJSOP15-Oct-07 7:13 
GeneralRe: Plain C Question Pin
Matthew Faithfull15-Oct-07 7:24
Matthew Faithfull15-Oct-07 7:24 
GeneralRe: Plain C Question Pin
led mike15-Oct-07 6:20
led mike15-Oct-07 6:20 
GeneralRe: Plain C Question Pin
#realJSOP15-Oct-07 6:36
mve#realJSOP15-Oct-07 6:36 
GeneralRe: Plain C Question Pin
led mike15-Oct-07 6:46
led mike15-Oct-07 6:46 
GeneralRe: Plain C Question Pin
#realJSOP15-Oct-07 7:11
mve#realJSOP15-Oct-07 7:11 
GeneralRe: Plain C Question Pin
led mike15-Oct-07 7:47
led mike15-Oct-07 7:47 
GeneralRe: Plain C Question Pin
#realJSOP15-Oct-07 8:42
mve#realJSOP15-Oct-07 8:42 
GeneralRe: Plain C Question Pin
led mike15-Oct-07 8:46
led mike15-Oct-07 8:46 
GeneralRe: Plain C Question Pin
#realJSOP15-Oct-07 9:59
mve#realJSOP15-Oct-07 9:59 
GeneralRe: Plain C Question Pin
Mike Dimmick15-Oct-07 12:55
Mike Dimmick15-Oct-07 12:55 
GeneralRe: Plain C Question Pin
Alex Cohn16-Oct-07 2:03
Alex Cohn16-Oct-07 2:03 
GeneralRe: Plain C Question Pin
Nemanja Trifunovic15-Oct-07 7:08
Nemanja Trifunovic15-Oct-07 7:08 
GeneralRe: Plain C Question Pin
Jörgen Sigvardsson15-Oct-07 9:15
Jörgen Sigvardsson15-Oct-07 9:15 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.