Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- TCXL Database - strmid http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
strmid

Create a new string from part of an input string.

Header File.....TCXLstr.h

Prototype.......ChrP CTYP strmid(ChrP s, IntT p, IntT n);

Source File.....STR\STRMID.C

Arguments.......s  -  Input String
                p  -  Position to start copying
                n  -  Number of characters to copy

Returns.........Address of the newly created string or a NULL if a memory
                allocation error occurred.

Notes...........Takes a section from input string starting at given
                position and taking the given amount of characters creating
                a new string.  Be sure to free() the string when or if you
                are finished with it.

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