I use some code to switch channels by matching the name of the Channel with an output from a program.
A snip of the code is below.
The program outputs Getcom1 which I sprintf as FREQ.
It works perfectly when my channel name is only the FREQ but I would like to add something after FREQ too.
Code:
sprintf_s(FREQ, "%3.3f", GetCom1());
char *chpath[] = {"Air Traffic Control",FREQ, ""}; // Channel Structure
anyID myId = 0;
Is there a way to set the Char so it only needs to see a part of the channel name?
For Instance if FREQ = 123.450 and my Channel is called "123.450 Tower 1" I would like my plugin to move me if it matches the first 6 digits (FREQ) regardless of what the rest of the name is.