I was trying to work on a C program, but I can't figure out how
to do some
things. What I am looking for is a command in C similar to the mid$
command in Visual Basic. What I need to do is take a string out of
another
string. I need to be able to specify the start point, and then end point.
I also need to find a function that can look through the string, and find
the first space (beginning where I tell it to, not the beginning), and
return the value as an integer. Here is a sample line of input and what I
need it to output:

Input: 0 Inbox FOLD0000.FRM 443 442 1 1
Needed Output: Inbox

Does anyone know how to do this? I tried using the strstr() function to
find the space, but I couldn't figure out how to work with the pointer it
outputs. 

And Lawson, do you know what the beginning 0 and the trailing 3 numbers
are? I know what the first one is.

---------------------------------------------------------------------------------------------------------------------
Michael Golden
[EMAIL PROTECTED] (Normal, no attachments)
[EMAIL PROTECTED] (Only for messages with attachments.)
RedHat 5.2 (2.0.36) Linux user -- Linux Advocate

___________________________________________________________________
Get the Internet just the way you want it.
Free software, free e-mail, and free Internet access for a month!
Try Juno Web: http://dl.www.juno.com/dynoget/tagj.

Reply via email to