:: Re: [DNG] simple-netaid from scratc…
Página superior
Eliminar este mensaje
Responder a este mensaje
Autor: aitor
Fecha:  
A: dng
Asunto: Re: [DNG] simple-netaid from scratch
Hi Didier,

En 12 de junio de 2019 7:40:08 Didier Kryn <kryn@???> escribió:
>
>>
>>
>>
>>
>> sizeof() is not a real function. Its syntax makes it look like a
>> function but it is not. Its argument can be either a variable or a type
>> (which no function can have). It is evaluated at compile time - which is
>> equivalent to replacing it with the litteral value.
>>
>>
>>
>>
>>
>>
>>
>>
>> Didier
>
> But, in this concrete case, the size can be evaluated at compile time
> because the memory is asigned statically by using a char array (instead of
> a char* pointer). In the case of a dinamic memory asignment (runtime), the
> size would be the value of the N variable used in the malloc function.
>
> BTW, i recently added the systray icon to simple-netaid:
>
> https://git.devuan.org/aitor_czr/simple-netaid/blob/master/screenshots/systray-icon.png
>
> Cheers,
>
> Aitor.
>
>
>
> ____________________________________________
> Dng mailing list
> Dng@???
> https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng



Enviado con AquaMail para Android
https://www.mobisystems.com/aqua-mail