Re: [Vala] Is this the right syntax for defining pointers in Vala ?
- From: Abderrahim Kitouni <a kitouni gmail com>
- To: Serge Hulne <serge hulne gmail com>
- Cc: vala-list <vala-list gnome org>
- Subject: Re: [Vala] Is this the right syntax for defining pointers in Vala ?
- Date: Mon, 20 Jun 2011 20:48:14 +0100
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]