This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
Hi to all,
I'm currently trying to develop a litte application on the Tiva uC platform. I would like to use the command line processor to control the software and would like to use the standart "C like" command line arguments like foo.exe -a foo -b foo ... I was looking for the getopt() function but couldn't find it. I would appreciate to get any advice.
Thanks you very much!
Hi Robert,
thank you for yout quick response. I might didn't express myself correct, sorry. My appliation is based on the qs-rgb application where they use the the virtual serial port to control the application witha command-line like approach. In this expample they used argc and argv to pass arguments inside the apprpriate command functions. I would like to pass parameters inside this functions with the common approach like -a fooa -b foob and so on. For that I was looking for a way to parse these parameters nicely and have like a big switch-case statement with all the options. I found that normaly the function getopt(int, char * const [], const char *) is used for taht but couln't find it inside the TivaWare folder. So my question is: Is there such a function to do what I'm trying to do or shall I rather try to write my own function to do that.
Thanks!