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!
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
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;