Sockets and multi string comparison
Hello,
I have a socket server program which takes things like CMD:hci_scan as input into a char *
and i would like to know how i could differentiate between all the different commands and i do know that you cant simply use a switch because a switch can only compare numerical data (and character constants, which, in terms of C are pretty much numbers)
so, my question is how do i efficiently make a server than can take a bunch of commands without using strcmp heaps
thanks for your help!