Skip to contentSkip to conversation

Significance of variable arguments

DISCUSSION krishna 3 participants 4 messages Dec 23, 2004

lore
Share & tools
lore

krishna

author
#0 lore raw

Hi All,

Can any one tell me a source which explains the significance of variable arguments.

eg : struct task_struct *kthread_create(int (*threadfn)(void *data),

                                  void *data,
                                  const char namefmt[],
                                  ...)

Regards,
Krishna Chaitanya

#1 lore raw
Quoted 4 lines · krishna

Hi All,

Can any one tell me a source which explains the significance of variable arguments.

This is like printf, execl etc etc. Common C usage to pass variable number of arguments, or even variable types.

Signature · 2 lines
http://www.PowerDNS.com      Open source, database driven DNS Software 
http://lartc.org           Linux Advanced Routing & Traffic Control HOWTO
#2 lore raw
In reply to krishna

krishna <[email protected]> wrote:

| Can any one tell me a source which explains the significance of variable 
| arguments.
| 
| eg : struct task_struct *kthread_create(int (*threadfn)(void *data),
|                                    void *data,
|                                    const char namefmt[],
|                                    ...)

man stdarg

Signature · 3 lines
Dick Streefland                      ////                      Altium BV
[email protected]           (@ @)          http://www.altium.com
--------------------------------oOO--(_)--OOo---------------------------
author
#3 lore raw

Thank you very much.

Quoted 11 lines · Dick Streefland

krishna <[email protected]> wrote:

| Can any one tell me a source which explains the significance of variable | arguments.
| | eg : struct task_struct *kthread_create(int (*threadfn)(void *data),
|                                    void *data,
|                                    const char namefmt[],
|                                    ...)

man stdarg