i'd like to find the most significant byte or bit within a string of chars. the size of the string is not set and can vary.
my char is something like:
and i'd like to find the HIGHEST occurance of a non zero character (in this case s i think) and display it as the address it is contained in. the data is written into the string after bieng received from a port starting at "WWW"Code:unsigned char mystring = "WWW003674574574asdgasdgas000000";
i'll then search through another character and display the diference between the two strings as a number of bytes.
is there a specific function that will do it or do i need to useloops to find occurances of non zero characters?Code:if