tags:

views:

1417

answers:

1

Is there a bluetooth API and tutorial for ANSI C in Linux?

+4  A: 

It obviously wouldn't be ANSI C but in Linux there is a great Bluetooth stack that in junction with D-BUS let's you do great things with ease.

You can find tutorials on their wiki.

I hope you enjoy programming Bluetooth on Linux as much as I did.

mpeterson
Good C code should still compile when passed the -ansi flag, there will probably just be lots warnings. In any case, there's no reason why you can't write ansi C which uses a non-ansi compiled api.
Dana the Sane
Strictly speaking if you compile with -ansi flag it shouldn't compile if the code isn't trully ansi code. The "problem" with ansi is that it's designed to be easely portable and because of that the subset is very low level and not as complete as one might want.
mpeterson