hi,
i am working in FC4, gcc3.2 compiler. pls help me doing this.
i have a string say,
string str1 = "/home/legolas/contents/EP1"
now i hav to find the location of the last occurance of "/" character from this string (22 in this case with index 0) and then i hav to get teh string upto that...
that is, /home/legolas/contents/
how do i do this?
/legolas
i am working in FC4, gcc3.2 compiler. pls help me doing this.
i have a string say,
string str1 = "/home/legolas/contents/EP1"
now i hav to find the location of the last occurance of "/" character from this string (22 in this case with index 0) and then i hav to get teh string upto that...
that is, /home/legolas/contents/
how do i do this?
/legolas