[dev] syntog - toggle synaptics touchpad

2012-12-23 Thread Peter A. Shevtsov
Hello, I've just finished the small utility to toggle state of synaptics touchpad. Maybe some of you would find it useful. But first of all, I'd like you to review my code (I'm not so good at C, actually). syntog is available in here - https://bitbucket.org/severusweb/syntog/src Thanks!

Re: [dev] [dwmstatus] smprintf rewritten (try)

2012-12-23 Thread p37sitdu
On Sun, Dec 23, 2012 at 09:51:27PM +0100, Thuban wrote: > Hello, > I tried to rewrite smprintf to use asprintf, following your advices. > Can you check if there is anything wrong? > I have some doubt about the necessaries free(). Is it alright if free() > is use outside the function? > > The code

[dev] [dwmstatus] smprintf rewritten (try)

2012-12-23 Thread Thuban
Hello, I tried to rewrite smprintf to use asprintf, following your advices. Can you check if there is anything wrong? I have some doubt about the necessaries free(). Is it alright if free() is use outside the function? The code : char * smprintf(char *fmt, ...) { va_list fmtargs;