Computer Programming

© Guy Lecky-Thompson

String Manipulation.

  1. sylbilassys


Reply   Post   Top
1.   Dec 29, 2006 1:30 AM

» sylbilassys - Mid function like vb


Did anyone have an idea how to implement mid(like vb) to chunk as string.

For example: let's saya i want to choose only a few char from string

char String="Md Diah"
char *CharChunk;

CharChunk= mid(string,4,3) ---code in vb

printf("CharChunk value now is %s \n",CharChunk);

Output
---------------------

Charchunk value now is Dia

How olll

-- posted by sylbilassys


Post this Discussion Post to facebook Add this Discussion Post to del.icio.us! Digg this Discussion Post furl this Discussion Post Add this Discussion Post to Reddit Add this Discussion Post to Technorati Add this Discussion Post to Newsvine Add this Discussion Post to Windows Live Add this Discussion Post to Yahoo Add this Discussion Post to StumbleUpon Add this Discussion Post to BlinkLists Add this Discussion Post to Spurl Add this Discussion Post to Google Add this Discussion Post to Ask Add this Discussion Post to Squidoo


Please follow the guidelines set forth in the Suite101 Posting Etiquette when adding to the discussion.