Re: [dev] How to monitor battery status

From: Hiltjo Posthuma <hiltjo_AT_codemadness.org>
Date: Mon, 20 Jun 2011 19:05:26 +0200

On Mon, Jun 20, 2011 at 6:06 PM, Connor Lane Smith <cls_AT_lubutu.com> wrote:
>
> Please don't encourage things like this. getline() is available in
> POSIX 2008; though I suspect the far more portable fgets() would
> suffice.
>

getline / getdelim (re)allocates buffers though. But yes a custom
function with fgets would be more compatible.
Received on Mon Jun 20 2011 - 19:05:26 CEST

This archive was generated by hypermail 2.2.0 : Mon Jun 20 2011 - 19:12:03 CEST