messing with function(...), need help!

Hello everyone!

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
void myfunc( ... )
{
    // 1. i need to get somehow the count of variables passed into myfunc
    // 2. i need to know their size ( char = 1byte, int = 4byte ... )
    // 3. i need to get them somehow, lets imagine that get_param(n) is the one
    // lets imagine that get_paramcount() returns what i want in 1.
    // and get_paramsize(n)returns what i want in 2.
    char **p;
    int a, s = get_paramcount();
    p = new char * [s];
    for( a = 0; a < s; a++ )
    {
        p[a] = new char[get_paramsize(a)];
        p[a] = (char *)get_param(n);
    }
    // now in p, i have all passed variables and i can do with them what    
    // ever i want.
}


Any ideas how to do what i want?
Thanks!
Topic archived. No new replies allowed.