1,105,384 Community Members

get word from path

Member Avatar
c++ lover
Newbie Poster
3 posts since Mar 2012
Reputation Points: 0 [?]
Q&As Helped to Solve: 0 [?]
Skill Endorsements: 0 [?]
 
0
 

Hello ,
I'm new here and new to c/c++ programming.
Can you guide me how to extract user from path like : /home/user/public_html

Please help me , thanks a lot

Member Avatar
gerard4143
Nearly a Posting Maven
2,385 posts since Jan 2008
Reputation Points: 371 [?]
Q&As Helped to Solve: 409 [?]
Skill Endorsements: 0 [?]
 
0
 

It really depends on your extraction criteria but I would start investigating functions like strtok().

Member Avatar
c++ lover
Newbie Poster
3 posts since Mar 2012
Reputation Points: 0 [?]
Q&As Helped to Solve: 0 [?]
Skill Endorsements: 0 [?]
 
-1
 

Thanks For your replay
but i do not know any thing in c
can you write the code please.

Member Avatar
gerard4143
Nearly a Posting Maven
2,385 posts since Jan 2008
Reputation Points: 371 [?]
Q&As Helped to Solve: 409 [?]
Skill Endorsements: 0 [?]
 
0
 

Thanks For your replay
but i do not know any thing in c
can you write the code please.

No, absolutely not.

Member Avatar
c++ lover
Newbie Poster
3 posts since Mar 2012
Reputation Points: 0 [?]
Q&As Helped to Solve: 0 [?]
Skill Endorsements: 0 [?]
 
0
 

anybody can help me please

Member Avatar
zeroliken
Nearly a Posting Virtuoso
1,222 posts since Nov 2011
Reputation Points: 79 [?]
Q&As Helped to Solve: 216 [?]
Skill Endorsements: 15 [?]
 
0
 

okay before we give more help what have you researched so far did you try to google search about the topic?

but i do not know any thing in c
can you write the code please.

Sorry but no ones gonna serve you code here without doing your part
forum rule:
Keep It Organized:
Do provide evidence of having done some work yourself if posting questions from school or work assignments

You
This article has been dead for over three months: Start a new discussion instead
Post:
Start New Discussion
Tags Related to this Article