News:

Download Pelles C here: http://www.smorgasbordet.com/pellesc/

Main Menu

BASIC String functions

Started by kingboyD, January 01, 2011, 08:08:16 PM

Previous topic - Next topic

kingboyD

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

David L Morris

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.