Hi Katolaz,
Here you are an example of two arguments (x,y) passed by reference:
# include
int main(void)
{
int i=1;
int j=2;
printf( "i = %d j = %d \n", i,j);
func(&i, &j);
printf( "i = %d j = %d \n", i,j);
return 0;
}
void func(int *x, int *y)
{
int k = *x;
*x = *y;
*y = k;
On Fri, 11 Dec 2015 09:01:19 +0100, Aitor Czr wrote:
[...]
> Passing by value and passing by reference in ANSI C99 are documented in the
> following book:
>
> C - The Complete Reference (by Herbert Schildt)
Ugh, this explains a lot! Books by Herbert Schildt
are, sit venia verbo, the most useles
> On December 10, 2015 at 7:59 PM Hendrik Boom wrote:
>
> On Thu, Dec 10, 2015 at 06:48:16PM -0700, Gregory Nowak wrote:
> > On Fri, Dec 11, 2015 at 12:47:05AM +0100, Patrick Erdmann wrote:
> > > would it be possible to use github comments or a seperate mailing list
> > > for Netman?
[snip]
> I
Le 11/12/2015 09:01, aitor_czr a écrit :
Hi Katolaz,
Here you are an example of two arguments (x,y) passed by reference:
# include
int main(void)
{
int i=1;
int j=2;
printf( "i = %d j = %d \n", i,j);
func(&i, &j);
printf( "i = %d j = %d \n", i,j);
return 0;
}
void func(int *x,
Hi Irrwahn,
Are you referring to Brian Kernighan and Dennis Ritchie?
Aitor.
On 12/11/2015 10:04 AM, Irrwahn wrote:
If you want an overall introductory book to C, get
K&R2, written by someone who understood C, if only
because he invented the language. :P If you want an
authoritative refere
They wrote the following book:
"The C programming language"
Aitor.
On 12/11/2015 10:31 AM, aitor_czr wrote:
Hi Irrwahn,
Are you referring to Brian Kernighan and Dennis Ritchie?
Aitor.
On 12/11/2015 10:04 AM, Irrwahn wrote:
If you want an overall introductory book to C, get
K&R2, wri
[top posting fixed]
On Fri, 11 Dec 2015 10:31:08 +0100, Aitor Czr wrote:
> On 12/11/2015 10:04 AM, Irrwahn wrote:
>> If you want an overall introductory book to C, get
>> K&R2, written by someone who understood C, if only
>> because he invented the language. :P If you want an
>> authoritative
aitor_...@gnuinos.org writes:
They wrote the following book:
"The C programming language"
I read both editions in my time and... isn't there anything better yet? The
book is short and gets to the point, but the code samples are terribly
happypathish, with weak and unstated pre- and postcondi
Maybe it doesn't deserve a Pulitzer :)
Aitor.
On 12/11/2015 10:04 AM, Irrwahn wrote:
Ugh, this explains a lot! Books by Herbert Schildt
are, sit venia verbo, the most useless utter crap
you can get. The only thing this book documents is
the total incompetence of its author. Have a good
laugh
On Fri, 11 Dec 2015 09:49:25 +, Arnt Gulbrandsen wrote:
> aitor_...@gnuinos.org writes:
>> They wrote the following book:
>>
>> "The C programming language"
>
> I read both editions in my time and... isn't there anything better yet? The
> book is short and gets to the point, but the code samp
[top-posting fixed]
On Fri, 11 Dec 2015 10:59:05 +0100, Aitor Czr wrote:
> On 12/11/2015 10:04 AM, Irrwahn wrote:
>> Ugh, this explains a lot! Books by Herbert Schildt
>> are, sit venia verbo, the most useless utter crap
>> you can get. The only thing this book documents is
>> the total incomp
On Fri, Dec 11, 2015 at 09:01:19AM +0100, aitor_czr wrote:
> Hi Katolaz,
>
> Here you are an example of two arguments (x,y) passed by reference:
[cut]
>
> void func(int *x, int *y)
> {
> int k = *x;
> *x = *y;
> *y = k;
> }
>
> This is the output:
>
> i = 1 j = 2
> i = 2 j = 1
>
Dear A
Maybe...
Here you are the same program written in both languages:
CASE 1 (C Language):
# include
void func(int*);
int main(void)
{
int i=1;
func(&i);
printf( "%d", i);
return 0;
}
void func(int *x)
{
*x = 2;
}
CASE 2 (C++ Language):
#include
void func(int &);
int main()
{
Of course :-)
On 12/11/2015 12:23 PM, KatolaZ wrote:
This is not being pedantic, but calling things with their name, and avoiding
confusion.
___
Dng mailing list
Dng@lists.dyne.org
https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng
[top-posting fixed]
On Fri, 11 Dec 2015 12:25:00 +0100, Aitor Czr wrote:
> On 12/11/2015 10:04 AM, Irrwahn wrote:
>> Ceterum censeo: There is no pass by reference in C,
>> has never been, and will presumably never be. Heck,
>> the C standard doesn't mention the concept at all,
>> not even in a no
On Fri, Dec 11, 2015 at 11:23:24AM +, KatolaZ wrote:
>
> C is one of the few remaining languages which is consistent about
> allowing only one of the many possible argument passing
> mechanisms. And the mechanism chosen by C is pass-by-value. Fullstop.
Historical note: it may have picked up t
On Fri, Dec 11, 2015 at 01:04:18PM +0100, Irrwahn wrote:
>
> [pedantic mode=full] There is no C/C++ language. Those
> are two distinct languages, looking uncannily similar
> in places. Unfortunately. [pedantic/]
Nonetheless, it is possible, and even practical, to write a program
in the interse
"Enrico Weigelt, metux IT consult" writes:
> On 01.11.2015 14:52, Rainer Weikusat wrote:
>> It's also strangely schizophrenic as there's no point in zero-filling
>> the entire structure prior to initializing its members one by one
>> which implies zero-filling the larger part of the second one[*]
Hi Svante,
I think, it is irritating to first having to scroll down text others
have written rather than the text the latest poster has written. If
the latest poster wants his readers to refer to ealier posts, he can
state that in his reply.
I don't consider this netiquitte, but rather, a writing
On Fri, 11 Dec 2015 19:26:50 +0100
Edward Bartolo wrote:
> I think, it is irritating to first having to scroll down text others
> have written rather than the text the latest poster has written. If
> the latest poster wants his readers to refer to ealier posts, he can
> state that in his reply.
Edward Bartolo writes:
> I think, it is irritating to first having to scroll down text others
> have written rather than the text the latest poster has written. If
> the latest poster wants his readers to refer to ealier posts, he can
> state that in his reply.
>
> I don't consider this netiquitte
Edward Bartolo [2015-12-11 19:26]:
> I think, it is irritating to first having to scroll down text others
> have written rather than the text the latest poster has written. If
> the latest poster wants his readers to refer to ealier posts, he can
> state that in his reply.
>
> I don't consider th
On Fri, Dec 11, 2015 at 07:26:50PM +0100, Edward Bartolo wrote:
> I think, it is irritating to first having to scroll down text others
> have written rather than the text the latest poster has written. If
> the latest poster wants his readers to refer to ealier posts, he can
> state that in his rep
On Fri, Dec 11, 2015 at 06:49:44PM +, Rainer Weikusat wrote:
> Edward Bartolo writes:
> > I think, it is irritating to first having to scroll down text others
> > have written rather than the text the latest poster has written. If
> > the latest poster wants his readers to refer to ealier post
Hi All,
Running dpkg-buildpackage under netman/ produced two .deb packages one
for the gui and one for the CLI backend. I inspected the packages'
content using Xarchiver and confirmed they look to contain what they
should. However, I am no Debian packager and cannot be certain that
the resultant t
Gregory Nowak writes:
> On Fri, Dec 11, 2015 at 07:26:50PM +0100, Edward Bartolo wrote:
>> I think, it is irritating to first having to scroll down text others
>> have written rather than the text the latest poster has written. If
>> the latest poster wants his readers to refer to ealier posts, he
Hi All,
Here is the output that speaks better than my words to describe the
remaining debianization issues with netman.
1) Failing to build package on 'dirty' sources.
edbarx@edbarx-pc:~/netman-0.1.1$ dpkg-buildpackage
dpkg-buildpackage: source package netman
dpkg-buildpackage: source version 0.1
Dear Rainer,
The code of Herbert Schildt is more understandable :)
Aitor.
El 11/12/15 20:13, Rainer Weikusat
escribió:
It's the default behaviour of certain e-mail clients and was already (at
that time) directly opposed to established conventions for communicating
via e-mail. Had Microsof
Hi all,
I'm back with an update on this, and a mini howto. First, thanks to
everyone who provided various suggestions regarding both hardware and
software. I ended up getting a raspberry pi2 b+. I did consider the
bananapi as well. While I like the sata port, there were a few things
where the raspb
29 matches
Mail list logo