I'm not sure to understand if you use CVI ou LV because you talk about "Match Pattern.vi"
Anyway, assuming you use CVI does the code below works for you ?
#include <formatio.h>
#include <stdlib.h>
#include <string.h>
#include <stdio.h>
int main (int argc, char *argv[]) {
char Coordinate[256] = "174°48.4443'E"; //36°55.7086'S 174°48.4443'E
int Degree, Index=0;
double Minutes=0.0;
Degree = strtol (Coordinate, NULL, 10);
Index = FindPattern (Coordinate, Index, strlen(Coordinate), "°", 0, 0);
Minutes = strtod(&Coordinate[Index+1], NULL);
printf("Coordinate are : %d°%f\n", Degree, Minutes);
getchar();
return EXIT_SUCCESS;
}
Regards, Philippe proud to be using LabWindows since version 1.2
// --------------------------------------------------------------------------------------------