Forgot your password?
typodupeerror

Comment Re:Using CUSE for sound devices is The Right Way (Score 1) 374

Take a look at http://fort2.xdas.com/~kor/oss2jack/ and the timestamps on that page.. This is a very bad case of deja vu, the 'fusd' framework is currently unmaintained (cusd is probably nicer..) but it's been around for a couple of years already. And guess what, the author of the above page wrote a userspace OSS device that couples to JACK. This stuff already exists for years!

Comment Re:Languages, tools, and libraries (Score 1) 956

While I agree with the general spirit of your post, please allow me to introduce you to a magic function called 'asprintf'!

'man 3 asprintf' says:

"The functions asprintf() and vasprintf() are analogs of sprintf(3) and vsprintf(3), except that they allocate a string large enough to hold the
output including the terminating null byte, and return a pointer to it via the first parameter. This pointer should be passed to free(3) to
release the allocated storage when it is no longer needed."

So your very long example just became a bit shorter. Of course you need to check if the returned string != NULL (just in case there wasn't enough memory). You also gain all the nice formatting functions of printf (though "%s%s" will do nicely in your example).

Slashdot Top Deals

IOT trap -- core dumped

Working...