Functions as used in BASIC language:
left() # return the leftmost N characters from a string, equivalent to LEFT$
right() # return the rightmost N characters from a string, equivalent to RIGHT$
mid() # return a substring, N characters long beginning at position M, equivalent to MID$
string() # create a string of repeated characters, equivalent to STRING$()
trim() # remove leading, trailing, & excess embedded spaces
Thanks for this posting. I am enjoying testing these routines. They will be a great help for BASIC programmers who want to explore the C language.