Re: [DNG] Making sense of C pointer syntax.

2016-03-31 Thread Emiliano Marini
Exactly, any local variable comes off the stack, but I was talking about pointers :) On Wed, Mar 30, 2016 at 3:37 PM, Steve Litt wrote: > On Wed, 30 Mar 2016 08:23:16 -0300 > Emiliano Marini wrote: > > > Edward, the only time the compiler allocates memory for data > > automatically is when usin

Re: [DNG] Making sense of C pointer syntax.

2016-03-31 Thread Emiliano Marini
+1 Besides, * and [] are interchangeable. You can define a string as an array and use it later as a pointer: char s[] = "hola"; char x = s[1]; // Here x = 'o' char y = *(s+2); // Here y = 'l' And vice versa: char *s = "hola"; char x = s[0]; // Here x = 'h' char y = *(s+3); // Here y

Re: [DNG] Making sense of C pointer syntax.

2016-03-31 Thread KatolaZ
On Wed, Mar 30, 2016 at 10:40:37PM +0200, Edward Bartolo wrote: > Hi, thanks for your help. > > So: [ I am recalling this from memory to test where I am ] > a) type* pp; // declare a pointer pp > b) *pp = RHS; // assign RHS to the data pointed to by pp This is a bit fishy, and should be taken wi

Re: [DNG] Making sense of C pointer syntax.

2016-03-31 Thread Hendrik Boom
On Thu, Mar 31, 2016 at 08:38:26AM -0300, Emiliano Marini wrote: > +1 > > Besides, * and [] are interchangeable. You can define a string as an array > and use it later as a pointer: > > char s[] = "hola"; > char x = s[1]; // Here x = 'o' > char y = *(s+2); // Here y = 'l' > > And vice vers

Re: [DNG] Making sense of C pointer syntax.

2016-03-31 Thread KatolaZ
On Thu, Mar 31, 2016 at 08:38:26AM -0300, Emiliano Marini wrote: > +1 > > Besides, * and [] are interchangeable. You can define a string as an array > and use it later as a pointer: > > char s[] = "hola"; > char x = s[1]; // Here x = 'o' > char y = *(s+2); // Here y = 'l' > > And vice vers

Re: [DNG] Making sense of C pointer syntax.

2016-03-31 Thread Edward Bartolo
Hi, thanks for taking time to reply, KatolaZ wrote: >> c) type **ss; // declare a pointer to pointer. System only allocates >> space for one address > C pointers are *always* one variable, precisely a variable large > enough to store a memory address on the current architecture. I think, I did n

Re: [DNG] Making sense of C pointer syntax.

2016-03-31 Thread aitor_czr
Hi, On 03/31/16 13:38, Emiliano Marini wrote: Besides, * and [] are interchangeable. You can define a string as an array and use it later as a pointer: char s[] = "hola"; char x = s[1]; // Here x = 'o' char y = *(s+2); // Here y = 'l' And vice versa: char *s = "hola"; char x = s[0];

Re: [DNG] Making sense of C pointer syntax.

2016-03-31 Thread KatolaZ
On Thu, Mar 31, 2016 at 03:58:49PM +0200, aitor_czr wrote: [cut] > >On Wed, Mar 30, 2016 at 6:04 PM, Rainer Weikusat < > >rainerweiku...@virginmedia.com> wrote: > > > >There's one > >>important difference: > >> > >>char chars[] = "12345"; > >> > >>cause the compiler to reserve six bytes (five cha

Re: [DNG] Making sense of C pointer syntax.

2016-03-31 Thread karl
Edward Bartolo: > KatolaZ wrote: > >> c) type **ss; // declare a pointer to pointer. System only allocates > >> space for one address > > > C pointers are *always* one variable, precisely a variable large > > enough to store a memory address on the current architecture. > > I think, I did not und

Re: [DNG] Making sense of C pointer syntax.

2016-03-31 Thread aitor_czr
On 03/31/16 16:07, KatolaZ wrote: On Thu, Mar 31, 2016 at 03:58:49PM +0200, aitor_czr wrote: [cut] > >On Wed, Mar 30, 2016 at 6:04 PM, Rainer Weikusat < > >rainerweiku...@virginmedia.com> wrote: > > > >There's one > >>important difference: > >> > >>char chars[] = "12345"; > >> > >>cause the c

Re: [DNG] Making sense of C pointer syntax.

2016-03-31 Thread KatolaZ
On Thu, Mar 31, 2016 at 03:12:32PM +0200, Edward Bartolo wrote: > Hi, thanks for taking time to reply, > > KatolaZ wrote: > >> c) type **ss; // declare a pointer to pointer. System only allocates > >> space for one address > > > C pointers are *always* one variable, precisely a variable large > >

[DNG] Download iso 32bit devuan alpha2 or higher(based installation without network)

2016-03-31 Thread Ismael L. Donis Garcia
Where can I find a devuan 32 bit iso alpha2 or higher than the minimum system is installed without access to the network? if alpha4 better Someone could provide me a link to the download if you have it built? I want to keep trying at home where I do not have internet access. From now thanks =

Re: [DNG] Making sense of C pointer syntax.

2016-03-31 Thread Hendrik Boom
On Thu, Mar 31, 2016 at 03:18:17PM +0100, KatolaZ wrote: > On Thu, Mar 31, 2016 at 03:12:32PM +0200, Edward Bartolo wrote: > > Hi, thanks for taking time to reply, > > > > KatolaZ wrote: > > >> c) type **ss; // declare a pointer to pointer. System only allocates > > >> space for one address > > >

Re: [DNG] Making sense of C pointer syntax.

2016-03-31 Thread Hendrik Boom
On Thu, Mar 31, 2016 at 03:58:49PM +0200, aitor_czr wrote: > Hi, > > On 03/31/16 13:38, Emiliano Marini wrote: > >Besides, * and [] are interchangeable. You can define a string as an array > >and use it later as a pointer: > > > >char s[] = "hola"; > >char x = s[1]; // Here x = 'o' > >char y

[DNG] systemd installed and running in default desktop

2016-03-31 Thread Boruch Baum
Am I the only one who hasn't noticed this yet? What am I missing? ( posted in parallel at: https://git.devuan.org/devuan-packages/sysvinit/issues/14 ) I installed the default devuan desktop package today, using the devuan installer, and on my first boot, instead of using the graphical installer,

Re: [DNG] Download iso 32bit devuan alpha2 or higher(based installation without network)

2016-03-31 Thread Go Linux
On Thu, 3/31/16, Ismael L. Donis Garcia wrote: Subject: [DNG] Download iso 32bit devuan alpha2 or higher(based installation without network) To: "Lista de Devuan" Date: Thursday, March 31, 2016, 11:47 AM Where can I find a devuan 32 bit iso alpha2 or higher than the minimum system is