Re: newbie question: connecting signals to callbacks

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, 2 Nov 2004 09:17:13 +0000, Tim Müller <t.i.m@xxxxxxxxx> wrote:

> Yes, it's fine to call a function with more arguments than it takes (in C).

I think your explanation is missing some detail...
could you explain that again please???

#include <stdio.h>
#include <string.h>

int main(void) {
  puts("hello world", "hello world", "hello world");
  strcmp("abc");
}

$ gcc foo.c
foo.c: In function `main':
foo.c:5: error: too many arguments to function `puts'
foo.c:6: error: too few arguments to function `strcmp'

Thanks!

Neil
_______________________________________________

gtk-list@xxxxxxxxx
http://mail.gnome.org/mailman/listinfo/gtk-list


[Index of Archives]     [Touch Screen Library]     [GIMP Users]     [Gnome]     [KDE]     [Yosemite News]     [Steve's Art]

  Powered by Linux