We're a community of 1076K IT Pros here for help, advice, solutions, professional growth and fun. Join us!
1,075,818 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Start New Discussion Reply to this Discussion

get word from path

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

3
Contributors
5
Replies
2 Hours
Discussion Span
1 Year Ago
Last Updated
6
Views
c++ lover
Newbie Poster
3 posts since Mar 2012
Reputation Points: 10
Solved Threads: 0
Skill Endorsements: 0

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

gerard4143
Nearly a Posting Maven
2,295 posts since Jan 2008
Reputation Points: 512
Solved Threads: 397
Skill Endorsements: 0

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

c++ lover
Newbie Poster
3 posts since Mar 2012
Reputation Points: 10
Solved Threads: 0
Skill Endorsements: 0

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

No, absolutely not.

gerard4143
Nearly a Posting Maven
2,295 posts since Jan 2008
Reputation Points: 512
Solved Threads: 397
Skill Endorsements: 0

anybody can help me please

c++ lover
Newbie Poster
3 posts since Mar 2012
Reputation Points: 10
Solved Threads: 0
Skill Endorsements: 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

zeroliken
Nearly a Posting Virtuoso
1,346 posts since Nov 2011
Reputation Points: 214
Solved Threads: 205
Skill Endorsements: 14

This article has been dead for over three months: Start a new discussion instead

Post: Markdown Syntax: Formatting Help
 
You
 
© 2013 DaniWeb® LLC
Page rendered in 0.0732 seconds using 2.69MB