diff options
Diffstat (limited to 'eg/ellipsis.c')
-rw-r--r-- | eg/ellipsis.c | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/eg/ellipsis.c b/eg/ellipsis.c new file mode 100644 index 0000000..0842f6a --- /dev/null +++ b/eg/ellipsis.c @@ -0,0 +1,15 @@ +int pr(int,...); + +void main(void) +{ + pr(3, 'a', 'b', 'c'); +} + +/* ellipsis test function */ +int pr( + int nitems, /* number of items */ + ... /* items */ +) +{ + /* blah, blah, blah, blah, blah! */ +} |