Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- FUNCky - <b>name:</b> <b>amaxstr() - get the longest string in a character array</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
  Name:     amaxstr() - get the longest string in a character array
  Usage:    <string> = amaxstr(<array>)
  Params:   array <array>, an array of strings
  Returns:  string equal to the longest string found in the array

 ---------------------------------- Example ---------------------------------

                 declare strings[5]
                 strings[1] = "This one"
                 strings[2] = "That one"
                 strings[3] = "The other one"
                 strings[4] = "Someone"
                 strings[5] = "Noone"

                 ? amaxstr(strings)
                 * prints "The other one"


See Also: amaxstrlen() amaxstrn()

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson