Re: [Vala] Is this the right syntax for defining pointers in Vala ?



Hello,

2011/6/20 Serge Hulne <serge hulne gmail com>:
Is this the right syntax for defining pointers in Vala ?

I think the following is better:

using Posix;

void main (string[] argv) {
  string a = "hello";
  string* b = a;
  strcpy(b, "bye");
  Posix.stdout.printf("a = %s\n", a);
  Posix.stdout.printf("b = %s\n", b);
}

HTH,
Abderrahim



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